vali 6 年之前
父节点
当前提交
68fe3210c2
共有 1 个文件被更改,包括 6 次插入8 次删除
  1. 6 8
      datainf/logic/HttpServerOnlySet.php

+ 6 - 8
datainf/logic/HttpServerOnlySet.php

@@ -581,20 +581,18 @@ class HttpServerOnlySet
                 }
             }
 
-
             $order_str_1 = array_map(function ($item) {
                 return "'$item'";
             }, $orderarr);
             $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();