vali 6 жил өмнө
parent
commit
68fe3210c2

+ 6 - 8
datainf/logic/HttpServerOnlySet.php

@@ -581,20 +581,18 @@ class HttpServerOnlySet
                 }
                 }
             }
             }
 
 
-
             $order_str_1 = array_map(function ($item) {
             $order_str_1 = array_map(function ($item) {
                 return "'$item'";
                 return "'$item'";
             }, $orderarr);
             }, $orderarr);
             $order_str = implode(",", $order_str_1);
             $order_str = implode(",", $order_str_1);
 
 
-            if ($change_status) {
-                if ($bettype == 1) {
-                    $sql_tmp = "update $moneytable set  settle_status=1, gain_money=0, game_status=0 where  game_code='$game_code' and match_id=$match_id and  status=1 and order_id in ($order_str)  ";
-                } else {
-                    $sql_tmp = "update $moneytable set  settle_status=1, gain_money=0  where order_id in ($order_str)  ";
-                }
-                $this->PushSqlToArray($sql_tmp);
+            if ($bettype == 1) {
+                $sql_tmp = "update $moneytable set  settle_status=1, gain_money=0, game_status=0 where  game_code='$game_code' and match_id=$match_id and  status=1 and order_id in ($order_str)  ";
+            } else {
+                $sql_tmp = "update $moneytable set  settle_status=1, gain_money=0  where order_id in ($order_str)  ";
             }
             }
+            $this->PushSqlToArray($sql_tmp);
+
         }
         }
 
 
         $ret = DB::table('money_prize')->whereIn('order_id', $order_ids)->where('money', '>', 0.01)->get();
         $ret = DB::table('money_prize')->whereIn('order_id', $order_ids)->where('money', '>', 0.01)->get();