|
@@ -235,6 +235,12 @@ class AuthController
|
|
|
} catch (ValidateException $e) {
|
|
|
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 ($phone) {
|
|
|
if (!$captcha) {
|