Jonlin 6 years ago
parent
commit
51a024e348
3 changed files with 6 additions and 6 deletions
  1. 2 2
      app/Models/BaseLeague.php
  2. 2 2
      app/Models/BasketLeague.php
  3. 2 2
      app/Models/TennisLeague.php

+ 2 - 2
app/Models/BaseLeague.php

@@ -19,14 +19,14 @@ class BaseLeague extends BaseModel {
         if (is_array ($where) && count ($where) > 0){
             $data = $this
                 //->join('st_bq_local_league','st_bq_league.id','=','st_bq_local_league.lg_id')
-                ->select('st_bq_league.id','st_bq_league.name_chinese','st_bq_league.area_id','st_bq_league.country_id','st_bq_league.utime')
+                ->select('st_bq_league.lg_id','st_bq_league.name_chinese','st_bq_league.area_id','st_bq_league.country_id','st_bq_league.utime')
                 ->orderby('st_bq_league.utime','desc')
                 ->where($where)
                 ->paginate ($list);
         }else{
             $data = $this
                 //->join('st_bq_local_league','st_bq_league.id','=','st_bq_local_league.lg_id')
-                ->select('st_bq_league.id','st_bq_league.name_chinese','st_bq_league.area_id','st_bq_league.country_id','st_bq_league.utime')
+                ->select('st_bq_league.lg_id','st_bq_league.name_chinese','st_bq_league.area_id','st_bq_league.country_id','st_bq_league.utime')
                 ->orderby('st_bq_league.utime','desc')
                 ->paginate ($list);
         }

+ 2 - 2
app/Models/BasketLeague.php

@@ -21,14 +21,14 @@ class BasketLeague extends BaseModel {
         if (is_array ($where) && count ($where) > 0){
             $data = $this
                 //->join('st_lq_local_league','st_lq_league.id','=','st_lq_local_league.lg_id')
-                ->select('st_lq_league.id','st_lq_league.name_chinese','st_lq_league.area_id','st_lq_league.country_id','st_lq_league.utime')
+                ->select('st_lq_league.lg_id','st_lq_league.name_chinese','st_lq_league.area_id','st_lq_league.country_id','st_lq_league.utime')
                 ->orderby('st_lq_league.utime','desc')
                 ->where($where)
                 ->paginate ($list);
         }else{
             $data = $this
                 //->join('st_lq_local_league','st_lq_league.id','=','st_lq_local_league.lg_id')
-                ->select('st_lq_league.id','st_lq_league.name_chinese','st_lq_league.area_id','st_lq_league.country_id','st_lq_league.utime')
+                ->select('st_lq_league.lg_id','st_lq_league.name_chinese','st_lq_league.area_id','st_lq_league.country_id','st_lq_league.utime')
                 ->orderby('st_lq_league.utime','desc')
                 ->paginate ($list);
         }

+ 2 - 2
app/Models/TennisLeague.php

@@ -21,14 +21,14 @@ class TennisLeague extends BaseModel {
         if (is_array ($where) && count ($where) > 0){
             $data = $this
                 //->join('st_wq_local_league','st_wq_league.id','=','st_wq_local_league.lg_id')
-                ->select('st_wq_league.id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
+                ->select('st_wq_league.lg_id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
                 ->orderby('st_wq_league.utime','desc')
                 ->where($where)
                 ->paginate ($list);
         }else{
             $data = $this
                 //->join('st_wq_local_league','st_wq_league.id','=','st_wq_local_league.lg_id')
-                ->select('st_wq_league.id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
+                ->select('st_wq_league.lg_id','st_wq_league.name_chinese','st_wq_league.area_id','st_wq_league.country_id','st_wq_league.utime')
                 ->orderby('st_wq_league.utime','desc')
                 ->orderby('utime','desc')
                 ->paginate ($list);