dever 6 سال پیش
والد
کامیت
a10b0ea0ef
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      src/Reg.php

+ 7 - 0
src/Reg.php

@@ -277,6 +277,13 @@ class Reg extends Base
                 Dever::alert('请输入正确的邮箱');
             }
 
+            $account = Dever::config('base', 'project')->account;
+            $code = Dever::config('base', 'project')->nocode ? Dever::config('base', 'project')->nocode : state;
+            $baccount = ucfirst($account);
+            $method = 'check' . $baccount . 'Exists';
+
+            $this->$method($code, true);
+
             $code = $this->code(false, false);
 
             $email = base64_encode($email);