...
|
...
|
@@ -11,6 +11,7 @@ namespace api\index\controller; |
|
|
|
|
|
use api\index\model\AboutModel;
|
|
|
use api\index\model\ContactModel;
|
|
|
use api\index\model\JoinModel;
|
|
|
use api\index\model\VolunteerModel;
|
|
|
use api\index\model\UserModel;
|
|
|
use cmf\controller\RestBaseController;
|
...
|
...
|
@@ -451,6 +452,24 @@ class MemberCenterController extends RestBaseController |
|
|
$data = $contactModel->findData(array('id'=>1));
|
|
|
$this->success('获取成功!',$data);
|
|
|
}
|
|
|
/**
|
|
|
* @title 我参加的活动
|
|
|
* @description 参加过的活动
|
|
|
* @author XiaoGang Wang
|
|
|
* @url /index/member_center/joined
|
|
|
* @method GET
|
|
|
*
|
|
|
* @header name:XX-Token require:1 default: desc:token
|
|
|
*/
|
|
|
public function joined(){
|
|
|
$userId=$this->getUserId();
|
|
|
$Join=new JoinModel();
|
|
|
$join=$Join->getUserJoin($userId);
|
|
|
foreach ($join as $k=>$v){
|
|
|
$join[$k]['thumbnail']=cmf_get_image_url($v['thumbnail']);
|
|
|
}
|
|
|
$this->success('',$join);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|