|
|
@ -2435,7 +2435,7 @@ class UserController extends BaseController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$userinfo = M('User', 'tab_')->where(['id' => $user['user_id']])->find();
|
|
|
|
$userinfo = M('User', 'tab_')->where(['id' => $user['user_id']])->find();
|
|
|
|
if(!empty($userinfo['idcard'])) {
|
|
|
|
if(!empty($userinfo['idcard'])) {
|
|
|
|
$this -> set_message(1086, "fail", "不允许修改");
|
|
|
|
$this -> set_message(1086, "fail", "禁止修改请联系客服");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!empty($userinfo['idcard']) && is_adult($userinfo['idcard']) && !is_adult($user['idcard'])) {
|
|
|
|
if(!empty($userinfo['idcard']) && is_adult($userinfo['idcard']) && !is_adult($user['idcard'])) {
|
|
|
|
$this -> set_message(1086, "fail", "您的账户已经是成年账户,不能再修改成为未成年账户");
|
|
|
|
$this -> set_message(1086, "fail", "您的账户已经是成年账户,不能再修改成为未成年账户");
|
|
|
|