...
|
...
|
@@ -119,6 +119,7 @@ class Active extends Api |
|
|
"apply_endtime"://报名结束时间
|
|
|
"applytime"://报名时间
|
|
|
"desc"://活动简介
|
|
|
"is_bao":是否报过名(1已经报过名2未报过)
|
|
|
}
|
|
|
})
|
|
|
*/
|
...
|
...
|
@@ -137,7 +138,12 @@ class Active extends Api |
|
|
foreach ($data['image'] as &$val){
|
|
|
$val = 'http://q2ugvq3qf.bkt.clouddn.com'.$val;
|
|
|
}
|
|
|
|
|
|
$res = Db::name('apply')->where('user_id',$user_id)->where('addactive_id',$id)->find();
|
|
|
if(!empty($res)){
|
|
|
$data['is_bao'] = 1;
|
|
|
}else{
|
|
|
$data['is_bao'] = 2;
|
|
|
}
|
|
|
//编辑返回的时间
|
|
|
$data['kaishitime'] = date('Y-m-d',$data['starttime']);
|
|
|
$data['jieshutime'] = date('Y-m-d',$data['endtime']);
|
...
|
...
|
|