浏览代码

各种列表

lizhen_gitee 6 月之前
父节点
当前提交
8d98236021
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)