vali 6 年之前
父节点
当前提交
26f102f627
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 6 0
      app/Logic/WinfailLogic.php
  2. 3 0
      datainf/logic/HttpServerSettelement.php

+ 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);