|
|
@@ -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;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|