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