1
This commit is contained in:
parent
6797b77eea
commit
06afa9b7b6
@ -37,6 +37,36 @@ class UserController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* showdoc
|
||||
* @catalog 会员注册
|
||||
* @method post
|
||||
* @url /api/user/modify-user
|
||||
* @return {"code":0,"msg":"ok","data":{}}
|
||||
* @remark
|
||||
*/
|
||||
public function actionVerifyUser()
|
||||
{
|
||||
|
||||
$user_id = \Yii::$app->user->identity->id; //获取用户登陆ID
|
||||
|
||||
$user = User::findOne(['id' => $user_id]);
|
||||
|
||||
if (!empty($user->is_view)) {
|
||||
$data = [
|
||||
'code' => 1,
|
||||
'msg' => '已绑定',
|
||||
];
|
||||
} else {
|
||||
$data = [
|
||||
'code' => 0,
|
||||
'msg' => '未绑定',
|
||||
];
|
||||
}
|
||||
return $this->responseHandler($data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* showdoc
|
||||
* @catalog 会员注册
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user