vali 6 gadi atpakaļ
vecāks
revīzija
26f102f627

+ 6 - 0
app/Logic/WinfailLogic.php

@@ -39,6 +39,12 @@ class WinfailLogic
         return $noticeMode;
     }
 
+    //r按赛事 全部重计算输赢时,要清除手动设置的结果
+    public function Reset_manualData($game_code, $match_id)
+    {
+        DB::table('money_buy_simple')->where(['match_id' => $match_id, 'game_code' => $game_code])->update(['is_manual' => 0]);
+    }
+
     //得到比赛最终结果记录
     public function getCompResult($type, $match_id)
     {

+ 3 - 0
datainf/logic/HttpServerSettelement.php

@@ -226,6 +226,9 @@ class HttpServerSettelement
 
         try {
             $noticeModel = $logic_obj->getNoticeDate($id);
+
+            $logic_obj->Reset_manualData($noticeModel->game_code, $noticeModel->match_id);
+
             $result = $logic_obj->getCompResult($noticeModel->game_code, $noticeModel->match_id);
             $moneySimples = $logic_obj->getSimplexData($noticeModel->game_code, $noticeModel->match_id);
             $matchs_1 = $logic_obj->getMatchRecords($noticeModel->game_code, $noticeModel->match_id, 1);