|
|
@@ -43,7 +43,7 @@ class UnSettmatchLogic
|
|
|
$result = $this->getResult($game_code, $match_id);
|
|
|
if (empty($match_id) || empty($game_code) || empty($result)) {
|
|
|
PARAEORROR:
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--参数错误!\n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--参数错误!";
|
|
|
unset($datas['token']);
|
|
|
$this->backandret($response, 0, $msg, $datas);
|
|
|
return false;
|
|
|
@@ -54,21 +54,21 @@ class UnSettmatchLogic
|
|
|
|
|
|
if (!in_array($result->status, [3])) {
|
|
|
unset($datas['token']);
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--数据状态值不为[3]!\n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--数据状态值不为[3]!";
|
|
|
$this->backandret($response, 0, $msg, $datas);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if ($this->optFlag($game_code, $match_id, 2)) {
|
|
|
unset($datas['token']);
|
|
|
- $msg = date("Y-m-d H:i:s") . " 正在处理中,不能重复提交!\n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 正在处理中,不能重复提交!";
|
|
|
$this->backandret($response, 0, $msg, $datas);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
$this->getFanshui();
|
|
|
$this->optFlag($game_code, $match_id, 1);
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--开始begin:game_code= $game_code match_id= $match_id \n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--开始begin:game_code= $game_code match_id= $match_id ";
|
|
|
$this->backandret($response, 1, $msg, $datas, 1);
|
|
|
|
|
|
DB::beginTransaction();
|
|
|
@@ -91,7 +91,7 @@ class UnSettmatchLogic
|
|
|
}
|
|
|
|
|
|
$this->optFlag($game_code, $match_id, 0);
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--结束end:game_code= $game_code match_id= $match_id \n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--结束end:game_code= $game_code match_id= $match_id ";
|
|
|
$this->backandret($response, 1, '撤销成功!' . $msg, []);
|
|
|
return;
|
|
|
}
|
|
|
@@ -108,7 +108,7 @@ class UnSettmatchLogic
|
|
|
$result = $this->getResult($game_code, $match_id);
|
|
|
if (empty($match_id) || empty($game_code) || empty($result) || empty($order_id)) {
|
|
|
PARAEORROR:
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--参数错误(参数错或为空了)!\n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--参数错误(参数错或为空了)!";
|
|
|
unset($datas['token']);
|
|
|
$this->backandret($response, 0, $msg, $datas);
|
|
|
return false;
|
|
|
@@ -160,12 +160,12 @@ class UnSettmatchLogic
|
|
|
}
|
|
|
|
|
|
ERRORCURL:
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--end:game_code= $game_code match_id= $match_id .$ret_str \n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--end:game_code= $game_code match_id= $match_id .$ret_str ";
|
|
|
$this->backandret($response, 0, '撤销失败!' . $msg, []);
|
|
|
return;
|
|
|
|
|
|
SUCCESSCUL:
|
|
|
- $msg = date("Y-m-d H:i:s") . " 取消赛事处理--end:game_code= $game_code match_id= $match_id order_id=$order_id\n";
|
|
|
+ $msg = date("Y-m-d H:i:s") . " 取消赛事处理--end:game_code= $game_code match_id= $match_id order_id=$order_id ";
|
|
|
$this->backandret($response, 1, '撤销成功!' . $msg, []);
|
|
|
return;
|
|
|
|