diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index 2f901c17..dca5a34b 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -927,7 +927,7 @@ class UserController extends BaseController } if(strlen($nickname_len) > 16){ - $this -> new_set_message(1027, "fail", "昵称过长"); + $this -> new_set_message(1027, "昵称过长"); } $nk = M('User', 'tab_') -> field('id,account,nickname') -> where(['nickname' => $user['nickname']]) -> find(); if (!empty($nk) && is_array($nk) && $user['user_id'] != $nk['id']) { @@ -937,7 +937,7 @@ class UserController extends BaseController break; case 'pwd': if(!preg_match('/^(?![^a-zA-Z]+$)(?!\D+$).{6,15}$/', $user['password'])){ - $this -> new_set_message(1027, "fail", "密码必须6-15位字母和数字组合"); + $this -> new_set_message(1027, "密码必须6-15位字母和数字组合"); } if ($user['old_password'] == $user['password']) {