Jelajahi Sumber

异常处理

彭俊 6 tahun lalu
induk
melakukan
a34f8b8cbf
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      Application/Sports/Controller/MatchListWeb.php

+ 2 - 1
Application/Sports/Controller/MatchListWeb.php

@@ -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'));