|
@@ -235,6 +235,7 @@ class AuthController
|
|
} catch (ValidateException $e) {
|
|
} catch (ValidateException $e) {
|
|
return app('json')->fail($e->getError());
|
|
return app('json')->fail($e->getError());
|
|
}
|
|
}
|
|
|
|
+ if (!$invite_code && User::count() > 0) return app('json')->fail('请输入邀请码');
|
|
if ($phone) {
|
|
if ($phone) {
|
|
if (!$captcha) {
|
|
if (!$captcha) {
|
|
return app('json')->fail('请输入验证码');
|
|
return app('json')->fail('请输入验证码');
|