Forráskód Böngészése

追加赔率状态

彭俊 6 éve
szülő
commit
06c9bc250f

+ 7 - 1
Application/Sports/Controller/MatchList.php

@@ -630,6 +630,12 @@ where a.match_id = b.match_id and a.id = b.id ";
 
             $list = array();
             foreach ($oddsData as $key=>$item){
+                //追加所属赔率状态
+                $item['oddsType'] = '';
+                if($oddsType == 'StRollBall'){
+                    $item['oddsType'] = 'StRollBall';
+                }
+                
                 $item['team'] = '';
                 if(strpos($item['odds_code'],'home') !== false) {
                     $item['team'] = 'home';
@@ -658,7 +664,7 @@ where a.match_id = b.match_id and a.id = b.id ";
                 'match_score'=>$matchData->match_score,
                 'p_code_array'=> $p_code_array,
                 'result_mark'=>$matchData->result_mark,
-                'oddsData'=>$oddsData,
+                'oddsData'=>$list,
                 'league' => $league,
             ];
             Render($data, '1', lang('Tips','Sports')->get('success'));

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

@@ -280,7 +280,6 @@ 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);
         
@@ -596,7 +595,6 @@ where a.match_id = b.match_id and a.id = b.id ";
             ->toArray();
 
 
-           
         // 去重 获取每个玩法下的赛事数量
         $oddsCodeNum = [];
         $game_num = count($match_ids);