Kirin 3 år sedan
förälder
incheckning
5383056780
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      app/api/controller/AuthController.php

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

@@ -235,6 +235,12 @@ class AuthController
         } catch (ValidateException $e) {
         } catch (ValidateException $e) {
             return app('json')->fail($e->getError());
             return app('json')->fail($e->getError());
         }
         }
+        if ($password != $check_psw) {
+            return app('json')->fail('两次输入的密码不一致');
+        }
+        if ($trade_password != $check_trade_psw) {
+            return app('json')->fail('两次输入的交易密码不一致');
+        }
 //        if (!$invite_code && User::count() > 0) return app('json')->fail('请输入邀请码');
 //        if (!$invite_code && User::count() > 0) return app('json')->fail('请输入邀请码');
         if ($phone) {
         if ($phone) {
             if (!$captcha) {
             if (!$captcha) {