vali 6 år sedan
förälder
incheckning
7787126824
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. 3 2
      app/Logic/WinfailLogic.php
  2. 1 1
      datainf/logic/HttpServerOnlySet.php

+ 3 - 2
app/Logic/WinfailLogic.php

@@ -148,6 +148,8 @@ class WinfailLogic
         $groupDatas = $this->getOddsTypeData($game_code, $match_id);
         $fristRet = $this->getFristRecord($game_code, $match_id, $groupDatas);
         $RefClass = new  \ReflectionClass($AdapterObj);
+        $noticeId = $matchModel->id;
+        $nowtime = date("Y-m-d H:i:s");
 
         $winorfalsedef = ['result' => 2, 'matchResult' => 'noRuleOrError'];
         foreach ($fristRet as $matchModel) {
@@ -182,6 +184,7 @@ class WinfailLogic
             } else {
                 DB::update("update money_buy_simplex  set game_status=$rwin  where batch_id in ( $sql)");
             }
+            DB::update("update  comendnotice set  status=1,result=1,done_time='$nowtime'  where  id=$noticeId ");
         }
         return true;
     }
@@ -201,7 +204,5 @@ class WinfailLogic
         return $return;
     }
 
-   
-
 
 }

+ 1 - 1
datainf/logic/HttpServerOnlySet.php

@@ -270,7 +270,7 @@ class HttpServerOnlySet
 
         if ($change_status) {
             $this->PushSqlToArray("update $table1 set  status=3  where   match_id=$match_id ");
-            $this->PushSqlToArray("update $table2 set  status=3  where   match_id=$match_id ");
+            $this->PushSqlToArray("update $table2 set  status=3  where   id=$match_id ");
         }
         unset($table1, $table2);
     }