|
|
@@ -264,6 +264,7 @@ class HttpServerSettelement
|
|
|
try {
|
|
|
list($order_ids, $bettype, $settype, $game_code, $match_id, $change_status) = $tmp = $this->requestpara($request, $response, $paras);
|
|
|
|
|
|
+
|
|
|
if (empty($order_ids)) {
|
|
|
goto LABRETURN;
|
|
|
}
|
|
|
@@ -276,6 +277,8 @@ class HttpServerSettelement
|
|
|
unset($chekArr);
|
|
|
}
|
|
|
|
|
|
+ $this->cgStatusSett($bettype, $game_code, $match_id);
|
|
|
+
|
|
|
//分页处理数据
|
|
|
$PageOrder_ids_1 = array_chunk($order_ids, 500);
|
|
|
$i = 1;
|
|
|
@@ -383,6 +386,21 @@ class HttpServerSettelement
|
|
|
return $return;
|
|
|
}
|
|
|
|
|
|
+ //改状态为正在结算中
|
|
|
+ private function cgStatusSett($bet_type, $game_code, $match_id)
|
|
|
+ {
|
|
|
+ if ($bet_type != 1) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $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]);
|
|
|
+ return;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private function Match_check($idsArray, $betType)
|
|
|
{
|