Эх сурвалжийг харах

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

彭俊 6 жил өмнө
parent
commit
c6355de755

+ 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) {