Ver Fonte

新增pc版赛事空值验证

彭俊 há 6 anos atrás
pai
commit
093040bd35
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      Application/Sports/Controller/MatchListWeb.php

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

@@ -163,6 +163,7 @@ class MatchListWeb extends Controller{
             ->where($where)
             ->where($timeWhere)
             ->get()->toArray();
+		if(empty($matchNum)) return $matchNum;
 
         //赔率数据
         $oddsCodeNum = $this->getOddsData($game_code,$models['model_odds'],$matchNum,$p_code,$type);