vali 6 years ago
parent
commit
900f4ab214
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/Logic/UnSettmatchLogic.php

+ 3 - 2
app/Logic/UnSettmatchLogic.php

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