|
@@ -52,6 +52,7 @@ class UnSettmatchLogic
|
|
|
$this->match_id = $match_id;
|
|
$this->match_id = $match_id;
|
|
|
$this->resultObj = $request;
|
|
$this->resultObj = $request;
|
|
|
|
|
|
|
|
|
|
+ //这里只做已结算过,又要撤单的情况 ,未结算的,由后台直接处理掉了
|
|
|
if (!in_array($result->status, [3])) {
|
|
if (!in_array($result->status, [3])) {
|
|
|
unset($datas['token']);
|
|
unset($datas['token']);
|
|
|
$msg = date("Y-m-d H:i:s") . " 取消赛事处理--数据状态值不为[3]!";
|
|
$msg = date("Y-m-d H:i:s") . " 取消赛事处理--数据状态值不为[3]!";
|
|
@@ -160,7 +161,7 @@ class UnSettmatchLogic
|
|
|
if (empty($ret) || !isset($ret['status']) || $ret['status'] != 1) {
|
|
if (empty($ret) || !isset($ret['status']) || $ret['status'] != 1) {
|
|
|
goto ERRORCURL;
|
|
goto ERRORCURL;
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
|
|
+ sleep(2);
|
|
|
$order_main->status = 3;
|
|
$order_main->status = 3;
|
|
|
$order_main->settlement_time = date('Y-m-d H:i:s');
|
|
$order_main->settlement_time = date('Y-m-d H:i:s');
|
|
|
$order_main->use_mark = '';
|
|
$order_main->use_mark = '';
|
|
@@ -239,7 +240,7 @@ class UnSettmatchLogic
|
|
|
if (empty($ret) || !isset($ret['status']) || $ret['status'] != 1) {
|
|
if (empty($ret) || !isset($ret['status']) || $ret['status'] != 1) {
|
|
|
goto ERRORCURL;
|
|
goto ERRORCURL;
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
|
|
+ sleep(2);
|
|
|
$order_main->status = 2;
|
|
$order_main->status = 2;
|
|
|
$order_main->settlement_time = date('Y-m-d H:i:s');
|
|
$order_main->settlement_time = date('Y-m-d H:i:s');
|
|
|
$order_main->use_mark = '';
|
|
$order_main->use_mark = '';
|