vali 6 年之前
父節點
當前提交
5c5a6e69c6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      datainf/logic/HttpServerSettelement.php

+ 2 - 1
datainf/logic/HttpServerSettelement.php

@@ -390,7 +390,8 @@ class HttpServerSettelement
     {
         if ($bet_type == 1) {
             $table = 'money_buy_simplex';
-            $ret = DB::table($table)->select('order_id')->where(['game_code' => $game_code, 'match_id' => $match_id, 'is_manual' => $is_manual])->get();
+            //$ret = DB::table($table)->select('order_id')->where(['game_code' => $game_code, 'match_id' => $match_id, 'is_manual' => $is_manual])->get();
+            $ret = DB::table($table)->select('order_id')->where([['game_code', '=', $game_code], ['match_id', '=', $match_id], ['is_manual', '=', $is_manual]])->whereIn('roll_ratify', [0, 1])->get();
         } else {
             $table = 'money_buy_str';
             $ret = DB::table($table)->select('order_id')->whereRaw(" order_id in ( select order_id  from  money_buy_match where match_id=$match_id and  game_code='$game_code' and bet_type=2 )")->get();