|
|
@@ -91,7 +91,7 @@ class MatchListWeb extends Controller{
|
|
|
foreach ($game as $k=>$v){
|
|
|
if($v['game_code'] !='gj'){
|
|
|
$models = $this->commonFunction->getModels($v['game_code'],1);
|
|
|
- $where = $this->commonFunction->getState($type,$models['model_match'],$game_code);
|
|
|
+ $where = $this->commonFunction->getState($type,$models['model_match'],$v['game_code']);
|
|
|
$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')
|
|
|
@@ -124,6 +124,7 @@ class MatchListWeb extends Controller{
|
|
|
public function Other($type,$game_code,$p_code,$time='',$lg_ids=[],$search=''){
|
|
|
//根据球类代码及玩法代码 获取相关赛事赔率数据
|
|
|
if(!empty($game_code) and !empty($p_code)){
|
|
|
+
|
|
|
$matchData = $this->getMatchData($type,$game_code,$p_code,$time,$lg_ids,$search);
|
|
|
|
|
|
Render($matchData, '1', lang('Tips','Sports')->get('success'));
|