vali 6 жил өмнө
parent
commit
cd677e5ea5

+ 7 - 1
app/Logic/UnSettmatchLogic.php

@@ -127,6 +127,12 @@ class UnSettmatchLogic
             return;
         }
 
+        if ($order_main->status == 2) {
+            $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;
+        }
+
         foreach ($order_main->matchdatas as $matitem) {
             if ($matitem->order_id == $order_id) {
                 $matitem->result = 2;
@@ -155,7 +161,7 @@ class UnSettmatchLogic
                 goto ERRORCURL;
             } else {
 
-                $order_main->status = 4;
+                $order_main->status = 2;
                 $order_main->settlement_time = date('Y-m-d H:i:s');
                 $order_main->use_mark = '注单所属赛事作废(作废)';
                 $order_main->save();