|
|
@@ -174,6 +174,7 @@ class MatchListWeb extends Controller{
|
|
|
$select = [$models['model_league'].'.id as lg_id',$models['model_league'].'.name_chinese as leagueName',$models['model_match'].'.id as match_id','home_team','guest_team','match_date','match_time','tag','country_id','area_id'];
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
//如果是滚球
|
|
|
if($type == 'StRollBall'){
|
|
|
$select = [$models['model_league'].'.id as lg_id',$models['model_league'].'.name_chinese as leagueName',$models['model_match'].'.id as match_id','home_team','guest_team','match_date','match_time','tag','country_id','area_id'];
|
|
|
@@ -273,12 +274,14 @@ where a.match_id = b.match_id and a.id = b.id ";
|
|
|
|
|
|
//赔率数据
|
|
|
$oddsCodeNum = $this->getOddsData($game_code,$models['model_odds'],$match_ids,$lg_ids,$p_code,$type);
|
|
|
+ if(empty($p_code)) return $oddsCodeNum;
|
|
|
+
|
|
|
//处理联赛/赛事/赔率 数据
|
|
|
$data = $this->get_l_m_o($p_code,$matchNum,$oddsCodeNum,$models['model_result_record'],$game_code);
|
|
|
|
|
|
return $data;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/*
|
|
|
* 联赛/赛事/赔率 组装数据
|
|
|
*/
|
|
|
@@ -555,7 +558,7 @@ where a.match_id = b.match_id and a.id = b.id ";
|
|
|
$oddsData = ZQoddsModel::getOddsDataPC($model_odds,$select,$match_ids,$whereOr,$p_code);
|
|
|
return $oddsData;
|
|
|
}
|
|
|
- $oddsData = ZQoddsModel::getOddsDataPC($model_odds,$select,$match_ids,$whereOr);
|
|
|
+ $oddsData = ZQoddsModel::getOddsDataPC($model_odds,$select,$match_ids,$whereOr,'',$game_code);
|
|
|
|
|
|
//按父级玩法分组
|
|
|
$oddsCode = [];
|
|
|
@@ -574,8 +577,8 @@ where a.match_id = b.match_id and a.id = b.id ";
|
|
|
}
|
|
|
|
|
|
sort($oddsCodeNum);
|
|
|
- Render($oddsCodeNum, '1', lang('Tips','Sports')->get('success'));
|
|
|
- // return $oddsCodeNum;
|
|
|
+ // Render($oddsCodeNum, '1', lang('Tips','Sports')->get('success'));
|
|
|
+ return $oddsCodeNum;
|
|
|
}
|
|
|
|
|
|
//获取直播数据
|