|
@@ -1078,7 +1078,7 @@ class CommonFunction {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//处理空赔率赛事
|
|
//处理空赔率赛事
|
|
|
- function Handle_Odds_Null($matchData=[],$models=[]){
|
|
|
|
|
|
|
+ function Handle_Odds_Null($matchData=[],$models=[],$oddsTypeWhere=[]){
|
|
|
//===获取当前赛事是否有赔率,如果没有则去除===
|
|
//===获取当前赛事是否有赔率,如果没有则去除===
|
|
|
//获取当前match_id
|
|
//获取当前match_id
|
|
|
$match_ids = [];
|
|
$match_ids = [];
|
|
@@ -1088,6 +1088,7 @@ class CommonFunction {
|
|
|
//获取下赛事赔率
|
|
//获取下赛事赔率
|
|
|
$oddsData = lm($models['model_odds'],'Sports')
|
|
$oddsData = lm($models['model_odds'],'Sports')
|
|
|
->whereIn('match_id',$match_ids)
|
|
->whereIn('match_id',$match_ids)
|
|
|
|
|
+ ->where($oddsTypeWhere)
|
|
|
->pluck('match_id')
|
|
->pluck('match_id')
|
|
|
->toArray();
|
|
->toArray();
|
|
|
|
|
|