Browse Source

各种列表

lizhen_gitee 6 months ago
parent
commit
8d98236021
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Index.php

+ 2 - 2
application/api/controller/Index.php

@@ -68,7 +68,7 @@ class Index extends Api
             $where_auth = "(userauth_status = 1) or (find_in_set('".$this->auth->id."',user_ids) )";
         }
 
-        $lists = Db::name('train_active')->field('id,title,logo_image,starttime,endtime,pingjia_time,pingjia_uid')
+        $lists = Db::name('train_active')->field('id,name as title,logo_image,starttime,endtime,pingjia_time,pingjia_uid')
             ->where('status', 1)
             ->where('deletetime', NULL)
             ->whereRaw("((endtime = 0) or (endtime > {$now}))")
@@ -144,7 +144,7 @@ class Index extends Api
             $where_auth = "(userauth_status = 1) or (find_in_set('".$this->auth->id."',user_ids) )";
         }
 
-        $papers = Db::name('train_active')->field('id,title,logo_image,starttime,endtime,pingjia_time,pingjia_uid')
+        $papers = Db::name('train_active')->field('id,name as title,logo_image,starttime,endtime,pingjia_time,pingjia_uid')
             ->where('status', 1)
             ->where('deletetime', NULL)
             ->where($where)