|
@@ -68,7 +68,7 @@ class Index extends Api
|
|
$where_auth = "(userauth_status = 1) or (find_in_set('".$this->auth->id."',user_ids) )";
|
|
$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('status', 1)
|
|
->where('deletetime', NULL)
|
|
->where('deletetime', NULL)
|
|
->whereRaw("((endtime = 0) or (endtime > {$now}))")
|
|
->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) )";
|
|
$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('status', 1)
|
|
->where('deletetime', NULL)
|
|
->where('deletetime', NULL)
|
|
->where($where)
|
|
->where($where)
|