...
|
...
|
@@ -119,4 +119,19 @@ class UserController extends RestBaseController |
|
|
cmf_verification_code_log($param['mobile'], $code, 180);
|
|
|
$this->success('',$re);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 我的页面
|
|
|
* @description 我的页面渲染接口
|
|
|
* @author panhaowen
|
|
|
* @url /portal/User/my
|
|
|
* @method POST
|
|
|
* @header name:XX-Token require:1 default: desc:token
|
|
|
* @return user_status:1:普通会员,2:vip
|
|
|
*/
|
|
|
public function my(){
|
|
|
$user=Db::name('user')->where('id',$this->getUserId())->field('user_nickname,user_status,avatar')->find();
|
|
|
$user['avatar']=cmf_get_image_preview_url( $user['avatar']);
|
|
|
$this->success('获取成功',$user);
|
|
|
}
|
|
|
} |
...
|
...
|
|