Jonlin 6 years ago
parent
commit
a473d4cebb
1 changed files with 5 additions and 5 deletions
  1. 5 5
      app/Models/SoccerLeague.php

+ 5 - 5
app/Models/SoccerLeague.php

@@ -14,13 +14,13 @@ class SoccerLeague extends BaseModel {
 
     function getinfo($list = 10, $page, $where = '')
     {
-        $source = \App\Models\Setinfo::where('id','1000')->first();
-        if($source->infocontent != '混合数据'){
-            $where[] = array('st_zq_local_league.source', '=', $source->infocontent);
-        }
+//        $source = \App\Models\Setinfo::where('id','1000')->first();
+//        if($source->infocontent != '混合数据'){
+//            $where[] = array('st_zq_local_league.source', '=', $source->infocontent);
+//        }
         if (is_array ($where) && count ($where) > 0){
             $data = $this
-                ->join('st_zq_local_league','st_zq_league.lg_id','=','st_zq_local_league.lg_id')
+                //->join('st_zq_local_league','st_zq_league.lg_id','=','st_zq_local_league.lg_id')
                 ->select('st_zq_league.lg_id','st_zq_league.name_chinese','st_zq_league.area_id','st_zq_league.country_id','st_zq_league.status','st_zq_league.utime')
                 ->orderby('st_zq_league.utime','desc')
                 ->where($where)