Преглед изворни кода

追加串场赛事赔率验证

彭俊 пре 6 година
родитељ
комит
263aab56e1
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 1
      Biz/Common/CommonFunction.php
  2. 1 1
      Biz/Match/GetmatchData.php

+ 2 - 1
Biz/Common/CommonFunction.php

@@ -1078,7 +1078,7 @@ class CommonFunction {
     }
     }
 
 
     //处理空赔率赛事
     //处理空赔率赛事
-    function Handle_Odds_Null($matchData=[],$models=[]){
+    function Handle_Odds_Null($matchData=[],$models=[],$oddsTypeWhere=[]){
          //===获取当前赛事是否有赔率,如果没有则去除===
          //===获取当前赛事是否有赔率,如果没有则去除===
         //获取当前match_id
         //获取当前match_id
         $match_ids = [];
         $match_ids = [];
@@ -1088,6 +1088,7 @@ class CommonFunction {
         //获取下赛事赔率
         //获取下赛事赔率
         $oddsData = lm($models['model_odds'],'Sports')
         $oddsData = lm($models['model_odds'],'Sports')
         ->whereIn('match_id',$match_ids)
         ->whereIn('match_id',$match_ids)
+        ->where($oddsTypeWhere)
         ->pluck('match_id')
         ->pluck('match_id')
         ->toArray();
         ->toArray();
 
 

+ 1 - 1
Biz/Match/GetmatchData.php

@@ -708,7 +708,7 @@ class GetmatchData {
 
 
         //===获取当前赛事是否有赔率,如果没有则去除===
         //===获取当前赛事是否有赔率,如果没有则去除===
         $models = ['model_odds'=>$model_odds];
         $models = ['model_odds'=>$model_odds];
-        $matchData_new = $this->commonFunction->Handle_Odds_Null($matchData,$models);
+        $matchData_new = $this->commonFunction->Handle_Odds_Null($matchData,$models,$oddsTypeWhere);
 
 
         //获取各球类默认赔率
         //获取各球类默认赔率
         $game_code = $_REQUEST['game_code'];
         $game_code = $_REQUEST['game_code'];