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

+ 7 - 5
Application/Sports/Controller/MatchListWeb.php

@@ -290,7 +290,7 @@ where a.match_id = b.match_id and a.id = b.id ";
         }
 
         //赔率数据
-        $oddsCodeNum = $this->getOddsData($game_code,$models['model_odds'],$match_ids,$lg_ids,$p_code,$type);
+        $oddsCodeNum = $this->getOddsData($game_code,$models,$match_ids,$lg_ids,$p_code,$type);
 
         if(empty($p_code) and $type != 'StRollBall') {
             return $oddsCodeNum;
@@ -537,7 +537,8 @@ where a.match_id = b.match_id and a.id = b.id ";
     /*
      * 根据match_id获取赔率数据
      */
-    public function getOddsData($game_code,$model_odds,$match_ids=[],$lg_ids=[],$p_code='',$type=''){
+    public function getOddsData($game_code,$models,$match_ids=[],$lg_ids=[],$p_code='',$type='', $matchData = []){
+        $model_odds = $models['model_odds'];
         //获取pc版各球类滚球/让球玩法代码
         $get_DefaultOdds = require "Config/DefaultOdds.php";
         $DefaultOddsRoll = $get_DefaultOdds['PC_StRollBall'];//滚球
@@ -628,13 +629,14 @@ where a.match_id = b.match_id and a.id = b.id ";
             ['type','=',1],
         ];
         $select = ['match_id','type'];
-       
-        $oddsData_gj_num = lm($model_odds,"Sports")
+
+        $oddsData_gj_num = $this->commonFunction->Handle_Odds_Null_lg($matchData,$models);
+        /*$oddsData_gj_num = lm($model_odds,"Sports")
             // ->select($select)
             ->where($where)
             ->groupby("lg_id","match_id","type")
             ->pluck('lg_id')
-            ->toArray();
+            ->toArray();*/
 
 
         // 去重 获取每个玩法下的赛事数量