lizhen_gitee hai 6 meses
pai
achega
8d98236021
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)