vali 6 лет назад
Родитель
Сommit
a991904c9b
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      datainf/logic/HttpServerOnlySet.php

+ 14 - 0
datainf/logic/HttpServerOnlySet.php

@@ -360,6 +360,13 @@ class HttpServerOnlySet
         if (!$change_status) {
             return;
         }
+
+        $result = $this->PDatas['game_result'];
+        if ($result->status == 1) {
+            //未结束的比赛不改状态
+            return;
+        }
+
         $table1 = "st_" . $game_code . "_result";
         $table2 = "st_" . $game_code . "_competition";
         $this->PushSqlToArray("update $table1 set  status=3  where   match_id=$match_id ");
@@ -721,6 +728,13 @@ class HttpServerOnlySet
             }
         }
 
+        $table = 'st_' . $game_code . '_result';
+        $ret = DB::table($table)->where('match_id', $match_id)->first();
+        if ($ret) {
+            $this->PDatas['game_result'] = $ret;
+        }
+
+
         return true;
     }