正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -127,9 +127,9 @@ class UserController extends RestBaseController | @@ -127,9 +127,9 @@ class UserController extends RestBaseController | ||
127 | * @url /portal/User/my | 127 | * @url /portal/User/my |
128 | * @method POST | 128 | * @method POST |
129 | * @header name:XX-Token require:1 default: desc:token | 129 | * @header name:XX-Token require:1 default: desc:token |
130 | - * @return user_status:1:普通会员,2:vip | 130 | + * @return user_status:1普通会员,2vip |
131 | */ | 131 | */ |
132 | - public function my(){ | 132 | + public function my(){ |
133 | $user=Db::name('user')->where('id',$this->getUserId())->field('user_nickname,user_status,avatar')->find(); | 133 | $user=Db::name('user')->where('id',$this->getUserId())->field('user_nickname,user_status,avatar')->find(); |
134 | $user['avatar']=cmf_get_image_preview_url( $user['avatar']); | 134 | $user['avatar']=cmf_get_image_preview_url( $user['avatar']); |
135 | $this->success('获取成功',$user); | 135 | $this->success('获取成功',$user); |
-
请 注册 或 登录 后发表评论