Kirin há 3 anos atrás
pai
commit
2b71fe8d88
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      app/api/controller/AuthController.php

+ 1 - 0
app/api/controller/AuthController.php

@@ -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('请输入验证码');