浏览代码

各种列表

lizhen_gitee 7 月之前
父节点
当前提交
267cc98b10
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Trainactive.php

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

@@ -20,7 +20,7 @@ class Trainactive extends Api
         $now  = time();
 
 
-        $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("(userauth_status = 1) or (find_in_set('".$this->auth->id."',user_ids) )")
@@ -49,7 +49,7 @@ class Trainactive extends Api
     //培训详情
     public function info(){
         $id = input('id',0);
-        $info = Db::name('train_active')->field('id,title,logo_image,starttime,endtime,pingjia,pingjia_time,pingjia_uid')
+        $info = Db::name('train_active')->field('id,name as title,logo_image,starttime,endtime,pingjia,pingjia_time,pingjia_uid')
             ->where('id', $id)
             ->find();