|
|
@@ -82,6 +82,8 @@ class MatchListWeb extends Controller{
|
|
|
//根据球类代码及玩法代码 获取相关赛事赔率数据
|
|
|
if(!empty($game_code)){
|
|
|
$matchData = $this->getMatchData($type,$game_code,$p_code,'',$lg_ids,$search);
|
|
|
+ //将为空的数组去除
|
|
|
+ $matchData = array_filter($matchData) ;
|
|
|
if(empty($matchData)) Render('', '1', lang('Tips','Sports')->get('success'));
|
|
|
|
|
|
Render($matchData, '1', lang('Tips','Sports')->get('success'));
|
|
|
@@ -129,7 +131,8 @@ class MatchListWeb extends Controller{
|
|
|
if(!empty($game_code) and !empty($p_code)){
|
|
|
|
|
|
$matchData = $this->getMatchData($type,$game_code,$p_code,$time,$lg_ids,$search);
|
|
|
-
|
|
|
+ //将为空的数组去除
|
|
|
+ $matchData = array_filter($matchData) ;
|
|
|
if(empty($matchData)) Render('', '1', lang('Tips','Sports')->get('success'));
|
|
|
Render($matchData, '1', lang('Tips','Sports')->get('success'));
|
|
|
}
|
|
|
@@ -150,6 +153,8 @@ class MatchListWeb extends Controller{
|
|
|
$matchDataNum[] = $vv;
|
|
|
}
|
|
|
}
|
|
|
+ //将为空的数组去除
|
|
|
+ $matchDataNum = array_filter($matchDataNum) ;
|
|
|
if(empty($matchDataNum)) Render('', '1', lang('Tips','Sports')->get('success'));
|
|
|
Render($matchDataNum, '1', lang('Tips','Sports')->get('success'));
|
|
|
}
|