vali 6 years ago
parent
commit
9ba0eb573b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Logic/UnSettmatchLogic.php

+ 4 - 0
app/Logic/UnSettmatchLogic.php

@@ -184,12 +184,16 @@ class UnSettmatchLogic
 
 
         //这里只把结果改为平局,再提交到旧的重新结算订单接口处理
         //这里只把结果改为平局,再提交到旧的重新结算订单接口处理
         foreach ($strOrders as $item2) {
         foreach ($strOrders as $item2) {
+            $item2->status = 2;
+            $item2->save();
+
             $mats = $item2->matchdatas;
             $mats = $item2->matchdatas;
             foreach ($mats as $item3) {
             foreach ($mats as $item3) {
                 $item3->result = 2;
                 $item3->result = 2;
                 $item3->matchresult = '赛事撤销!';
                 $item3->matchresult = '赛事撤销!';
                 $item3->save();
                 $item3->save();
             }
             }
+
         }
         }
 
 
         $dataArr = [
         $dataArr = [