彭俊 6 år sedan
förälder
incheckning
90a9d83050
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 0
      app/Models/MoneyBuyMatch.php
  2. 0 1
      app/Models/SportsNoteList.php

+ 2 - 0
app/Models/MoneyBuyMatch.php

@@ -49,6 +49,7 @@ class MoneyBuyMatch extends Model
             ];
             $data = $this->join('money_buy_simplex', 'money_buy_match.batch_id', '=', 'money_buy_simplex.batch_id')->select($select)->whereIn('money_buy_match.match_id',$match_ids)->where($typeWhere)->get();
         }else{
+            $where[] = array('money_buy_simplex.status', '=', 1);
             $data = $this->join('money_buy_simplex', 'money_buy_match.batch_id', '=', 'money_buy_simplex.batch_id')->join('st_odds_code', 'money_buy_match.odds_code', '=', 'st_odds_code.odds_code')->select($select)->where($where)->get();
         }
         return $data;
@@ -63,6 +64,7 @@ class MoneyBuyMatch extends Model
         $where[] = array('money_buy_match.bet_type', '=', 2);
         if(!empty($game_code)){
             $where[] = array('money_buy_match.game_code', '=', $game_code);
+            $where[] = array('money_buy_str.status', '=', 1);
         }
         if(empty($select)){
             $select = ['money_buy_str.order_id'];

+ 0 - 1
app/Models/SportsNoteList.php

@@ -82,7 +82,6 @@ class SportsNoteList extends BaseModel
         $select_zf = ['trade_id','money','money_cash'];
         $invalid_money = \App\Models\Money_details::SELECT($select_zf)->where('trade_type', '3')->whereIn('trade_id',$order_ids)->get();
 
-        dd($invalid_money->toArray());
         //获取注单 输赢 结果
         $select_play = ['order_id','result','matchresult','condition','odds','odds_code','bet_money','home_team','guest_team'];
         $content = \App\Models\MoneyBuyMatch::SELECT($select_play)->where('bet_type', '1')->whereIn('order_id',$order_ids)->get();