Browse Source

处理首页参赛表详情数据异常

彭俊 6 years ago
parent
commit
c6355de755
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Application/Sports/Controller/MatchList.php

+ 3 - 0
Application/Sports/Controller/MatchList.php

@@ -789,6 +789,9 @@ where a.match_id = b.match_id and a.id = b.id ";
                 ->distinct($st_competition.'.id')
                 ->get()
                 ->toarray();
+
+            //===获取当前赛事是否有赔率,如果没有则去除===
+            $data = $this->commonFunction->Handle_Odds_Null($data,$getModels);
             $data = $this->division($data);
             return $data;
         } catch (\Exception $e) {