|
|
@@ -70,17 +70,8 @@ class St_zq_odds extends Model
|
|
|
return $oddsData;
|
|
|
}
|
|
|
|
|
|
- if($game_code == 'zq'){
|
|
|
- //其他
|
|
|
- $oddsData = lm($model_odds,"Sports")
|
|
|
- ->select($select)
|
|
|
- ->whereIn('match_id',$match_ids)
|
|
|
- ->whereIn('p_code',$p_code)
|
|
|
- ->where($whereOr)
|
|
|
- ->get()
|
|
|
- ->toArray();
|
|
|
- }else{
|
|
|
- //其他
|
|
|
+ //非足球,查询各父玩法的指定子玩法
|
|
|
+ if(!empty($whereIn)){
|
|
|
$oddsData = lm($model_odds,"Sports")
|
|
|
->select($select)
|
|
|
->whereIn('match_id',$match_ids)
|
|
|
@@ -91,6 +82,15 @@ class St_zq_odds extends Model
|
|
|
->toArray();
|
|
|
}
|
|
|
|
|
|
+ //其他
|
|
|
+ $oddsData = lm($model_odds,"Sports")
|
|
|
+ ->select($select)
|
|
|
+ ->whereIn('match_id',$match_ids)
|
|
|
+ ->whereIn('p_code',$p_code)
|
|
|
+ ->where($whereOr)
|
|
|
+ ->get()
|
|
|
+ ->toArray();
|
|
|
+
|
|
|
|
|
|
return $oddsData;
|
|
|
}
|