vali 6 gadi atpakaļ
vecāks
revīzija
8afd1cfd26
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      datainf/logic/HttpServerOnlySet.php

+ 5 - 1
datainf/logic/HttpServerOnlySet.php

@@ -368,6 +368,10 @@ class HttpServerOnlySet
         }
 
         $result = $this->PDatas['game_result'];
+        if (empty($result)){
+            $table = 'st_' . $game_code . '_result';
+            $result = DB::table($table)->where('match_id', $match_id)->first();
+        }
 
         if ($result->status == 1 || $result->status == 0) {
             var_dump($result);
@@ -742,7 +746,7 @@ class HttpServerOnlySet
         $ret = DB::table($table)->where('match_id', $match_id)->first();
         if ($ret) {
             $this->PDatas['game_result'] = $ret;
-        }else{
+        } else {
             throw  new  \Exception('result 结果为空 异常->' . $match_id, 117);
         }