vali 6 years ago
parent
commit
103861d6de

+ 1 - 1
app/Lib/Settlement/SettlementOrder.php

@@ -423,7 +423,7 @@ class SettlementOrder extends SettlementBase
     {
         if ($change_status) {
             DB::table("st_" . $game_code . "_result")->where(['match_id' => $match_id])->update(['status' => 3]);
-            DB::table("st_" . $game_code . "_competition")->where(['id' => $match_id])->update(['status' => 3]);
+            DB::table("st_" . $game_code . "_competition")->where(['match_id' => $match_id])->update(['status' => 3]);
         }
     }
 

+ 1 - 1
app/Lib/Settlement/SettlementWinFail.php

@@ -403,7 +403,7 @@ class SettlementWinFail
         }
 
         $table = 'st_' . $game_code . '_competition';
-        $ret = DB::table($table)->where('id', $batch_id)->first();
+        $ret = DB::table($table)->where('match_id', $batch_id)->first();
         if (count($ret) <= 0) {
             throw new  \Exception('根据比赛ID获取赛事数据有误-' . $game_code . '-' . $batch_id);
         }