vali 6 년 전
부모
커밋
4a4a66eb57
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 8
      datainf/logic/HttpServerSettelement.php

+ 6 - 8
datainf/logic/HttpServerSettelement.php

@@ -498,16 +498,14 @@ class HttpServerSettelement
     //改状态为正在结算中
     private function cgStatusSett($bet_type, $game_code, $match_id, $change_status)
     {
-        if ($bet_type != 1 || $change_status != 1) {
-            return;
-        }
-        $table1 = "st_" . $game_code . "_result";
-        $table2 = "st_" . $game_code . "_competition";
+        if ($bet_type == 1 && $change_status == 1) {
+            $table1 = "st_" . $game_code . "_result";
+            $table2 = "st_" . $game_code . "_competition";
 
-        DB::table($table1)->where('match_id', $match_id)->update(['status' => 5]);
-        DB::table($table2)->where('id', $match_id)->update(['status' => 5]);
+            DB::table($table1)->where('match_id', $match_id)->update(['status' => 5]);
+            DB::table($table2)->where('id', $match_id)->update(['status' => 5]);
+        }
         return;
-
     }