vali 6 anos atrás
pai
commit
d7b1b85699
1 arquivos alterados com 6 adições e 4 exclusões
  1. 6 4
      app/Logic/UnSettmatchLogic.php

+ 6 - 4
app/Logic/UnSettmatchLogic.php

@@ -133,10 +133,6 @@ class UnSettmatchLogic
                 $matitem->matchresult = '手动订单取消(平局)';
                 $matitem->save();
             }
-            $order_main->status = 3;
-            $order_main->settlement_time = date('Y-m-d H:i:s');
-            $order_main->use_mark = '注单所属赛事作废';
-            $order_main->save();
         }
 
         $dataArr = [
@@ -158,6 +154,12 @@ class UnSettmatchLogic
             if (empty($ret) || !isset($ret['status']) || $ret['status'] != 1) {
                 goto ERRORCURL;
             } else {
+
+                $order_main->status = 3;
+                $order_main->settlement_time = date('Y-m-d H:i:s');
+                $order_main->use_mark = '注单所属赛事作废';
+                $order_main->save();
+
                 goto SUCCESSCUL;
             }
         }