|
@@ -62,9 +62,11 @@ class Login extends Controller
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 用户统一注册入口
|
|
|
- * @throws \think\admin\Exception
|
|
|
- * @throws \think\db\exception\DbException
|
|
|
+ * @Title("用户统一注册入口")
|
|
|
+ * @Param("nickname",desc="昵称")
|
|
|
+ * @Param("phone",desc="手机号")
|
|
|
+ * @Param("verify",desc="验证码")
|
|
|
+ * @Param("password",desc="密码")
|
|
|
*/
|
|
|
public function register()
|
|
|
{
|
|
@@ -75,6 +77,7 @@ class Login extends Controller
|
|
|
'username.default' => '',
|
|
|
'phone.mobile' => '手机格式错误!',
|
|
|
'phone.require' => '手机不能为空!',
|
|
|
+ 'nickname.require' => '昵称必须!',
|
|
|
'verify.require' => '验证码不能为空!',
|
|
|
'password.require' => '登录密码不能为空!',
|
|
|
]);
|