|
|
@@ -442,7 +442,6 @@ class GetmatchData {
|
|
|
->where(['status'=>0])
|
|
|
->groupBy("id","lg_id","match_id","p_code","odds_code","team","odds","sort","status","odds_only")
|
|
|
->get()->toArray();
|
|
|
-
|
|
|
//按p_code分组
|
|
|
$p_code=array();
|
|
|
foreach($championData as $k=>$v){
|
|
|
@@ -482,12 +481,12 @@ class GetmatchData {
|
|
|
->leftjoin('st_area_country','st_area_country.id',$models['model_league'].'.area_id')
|
|
|
->select('st_area_country.id as area_id','st_area_country.name as region')
|
|
|
->distinct('st_area_country.name')
|
|
|
+ ->where([[$models['model_league'].'.country_id','=',0]])
|
|
|
->where([[$models['model_league'].'.name_chinese','!=','']])
|
|
|
->where($models['model_league'].'.name_chinese','like','%'.$search.'%')
|
|
|
->get()
|
|
|
->toArray();
|
|
|
|
|
|
-
|
|
|
if($type_code != 'StChampion'){//非冠军赛事
|
|
|
$data = $this->getMatchNum($source,$country,$area,$models,$where,$search,$time);
|
|
|
}else{//冠军赛事
|
|
|
@@ -561,7 +560,7 @@ class GetmatchData {
|
|
|
if($v['area_id']){
|
|
|
$areaData[$k] = $v;
|
|
|
foreach ($leagueData as $kk=>$vv){
|
|
|
- if($v['area_id'] == $vv['area_id']){
|
|
|
+ if($v['area_id'] == $vv['area_id'] and $vv['country_id'] == 0){
|
|
|
$areaData[$k]['league_count'][] = $vv;
|
|
|
}
|
|
|
}
|
|
|
@@ -630,7 +629,7 @@ class GetmatchData {
|
|
|
if($v['area_id']){
|
|
|
$areaData[$k] = $v;
|
|
|
foreach ($leagueData as $kk=>$vv){
|
|
|
- if($v['area_id'] == $vv['area_id']){
|
|
|
+ if($v['area_id'] == $vv['area_id'] and $vv['country_id'] == 0){
|
|
|
$areaData[$k]['league_count'][] = $vv;
|
|
|
}
|
|
|
}
|