|
|
@@ -1086,12 +1086,6 @@ class CommonFunction {
|
|
|
$match_ids[] = $v['match_id'];
|
|
|
}
|
|
|
//获取下赛事赔率
|
|
|
- // $oddsData = lm($models['model_odds'],'Sports')
|
|
|
- // ->whereIn('match_id',$match_ids)
|
|
|
- // ->where($oddsTypeWhere)
|
|
|
- // ->pluck('match_id')
|
|
|
- // ->toArray();
|
|
|
-
|
|
|
$oddsData = lm($models['model_odds'],'Sports')
|
|
|
->select('match_id')
|
|
|
->whereIn('match_id',$match_ids)
|
|
|
@@ -1100,16 +1094,6 @@ class CommonFunction {
|
|
|
->get()
|
|
|
->toArray();
|
|
|
|
|
|
- // dd($oddsData);
|
|
|
- // echo count($oddsData);
|
|
|
- // $oddsData = $this->array_unset_tt($oddsData,'match_id');
|
|
|
- // sort($oddsData);
|
|
|
- // echo '</br>';
|
|
|
- // echo count($oddsData);
|
|
|
- // echo '</br>';
|
|
|
- // echo date('Y-m-d H:i:s',time());
|
|
|
- // exit;
|
|
|
-
|
|
|
//如果赔率为空,则返回空
|
|
|
if(empty($oddsData)) return $oddsData;
|
|
|
$matchData_new = [];
|
|
|
@@ -1134,12 +1118,6 @@ class CommonFunction {
|
|
|
$lg_ids[] = $v['lg_id'];
|
|
|
}
|
|
|
//获取下赛事赔率
|
|
|
- // $oddsData = lm($models['model_odds'],'Sports')
|
|
|
- // ->whereIn('lg_id',$lg_ids)
|
|
|
- // ->where('type',1)
|
|
|
- // ->pluck('lg_id')
|
|
|
- // ->toArray();
|
|
|
-
|
|
|
$oddsData = lm($models['model_odds'],'Sports')
|
|
|
->select('lg_id')
|
|
|
->whereIn('lg_id',$lg_ids)
|
|
|
@@ -1147,10 +1125,6 @@ class CommonFunction {
|
|
|
->distinct('lg_id')
|
|
|
->get()
|
|
|
->toArray();
|
|
|
-
|
|
|
- // $oddsData = array_unique($oddsData);
|
|
|
- // sort($oddsData);
|
|
|
-
|
|
|
//如果赔率为空,则返回空
|
|
|
if(empty($oddsData)) return $oddsData;
|
|
|
$matchData_new = [];
|