|
@@ -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();
|
|
|
|