vali 6 years ago
parent
commit
4a4a66eb57
1 changed files with 6 additions and 8 deletions
  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)
     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;
         return;
-
     }
     }