作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

修改意见

@@ -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);