Jimy 6 năm trước cách đây
mục cha
commit
37f56b87e2
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/Models/MoneyBuyMatch.php

+ 3 - 2
app/Models/MoneyBuyMatch.php

@@ -26,12 +26,13 @@ class MoneyBuyMatch extends Model
     }
 
   	//赛事下所有下注单式下单
-    function allsimplexorder($ssid){ 
+    function allsimplexorder($ssid,$code){ 
         //单式下单
         $where = array();
         $where[] = array('money_buy_match.match_id', '=', $ssid);
         $where[] = array('money_buy_match.bet_type', '=', 1);
-        $data = $this->join('money_buy_simplex','money_buy_match.batch_id','=','money_buy_simplex.batch_id')->select('money_buy_simplex.order_id','money_buy_simplex.money','money_buy_simplex.account_identity','money_buy_simplex.info_identity','money_buy_simplex.match_id')->where($where)->get()->toArray();
+		$where[] = array('money_buy_match.game_code', '=', $code);
+        $data = $this->join('money_buy_simplex','money_buy_match.match_id','=','money_buy_simplex.match_id')->select('money_buy_simplex.order_id','money_buy_simplex.money','money_buy_simplex.account_identity','money_buy_simplex.info_identity','money_buy_simplex.match_id')->where($where)->get()->toArray();
         return $data;
     }