|
|
@@ -92,10 +92,15 @@ class MatchListWeb extends Controller{
|
|
|
if($v['game_code'] !='gj'){
|
|
|
$models = $this->commonFunction->getModels($v['game_code'],1);
|
|
|
$where = $this->commonFunction->getState($type,$models['model_match']);
|
|
|
- $matchNum = lm($models['model_league'],"Sports")
|
|
|
+ $matchData = lm($models['model_league'],"Sports")
|
|
|
->join($models['model_match'],$models['model_match'].'.lg_id',$models['model_league'].'.id')
|
|
|
+ ->select($models['model_match'].'.id as match_id')
|
|
|
->where($where)
|
|
|
- ->count("*");
|
|
|
+ ->get()
|
|
|
+ ->toarray();
|
|
|
+ //===获取当前赛事是否有赔率,如果没有则去除===
|
|
|
+ $matchData_new = $this->commonFunction->Handle_Odds_Null($matchData,$models);
|
|
|
+ $matchNum = count($matchData_new);
|
|
|
//获取满足状态的球类
|
|
|
if($matchNum != 0){
|
|
|
$gameData[$k]['game_code'] = $v['game_code'];
|