vali пре 6 година
родитељ
комит
eb60485bfe
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      datainf/logic/HttpServerOnlySet.php

+ 3 - 1
datainf/logic/HttpServerOnlySet.php

@@ -544,7 +544,9 @@ class HttpServerOnlySet
 
         if ($bettype == 1) {
             $moneytable = 'money_buy_simplex';
-            $ret = DB::table('money_buy_simplex')->where(['game_code' => $game_code, 'match_id' => $match_id, 'is_manual' => $is_manual])->whereIn('order_id', $order_ids)->get();
+            //$ret = DB::table('money_buy_simplex')->where(['game_code' => $game_code, 'match_id' => $match_id, 'is_manual' => $is_manual])->whereIn('order_id', $order_ids)->get();
+            $tmpwhere = [['game_code', '=', $game_code], ['match_id', '=', $match_id], ['is_manual', '=', $is_manual], ['roll_ratify', '>=', 0]];
+            $ret = DB::table('money_buy_simplex')->where($tmpwhere)->whereIn('order_id', $order_ids)->get();
         } else {
             $moneytable = 'money_buy_str';
             $ret = DB::table('money_buy_str')->whereIn('order_id', $order_ids)->get();