dever 6 anni fa
parent
commit
eff73727b1
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      src/Reg.php

+ 7 - 1
src/Reg.php

@@ -78,7 +78,13 @@ class Reg extends Base
      */
     public function checkMobileExist()
     {
-        $mobile = $this->checkMobileExists(1);
+        $param['option_mobile'] = $this->checkMobile();
+
+        $user = Dever::db('passport/user')->one($param);
+
+        if (!$user) {
+            Dever::alert('该手机号未注册');
+        }
 
         return 'ok';
     }