dever 6 年之前
父节点
当前提交
eff73727b1
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/Reg.php

+ 7 - 1
src/Reg.php

@@ -78,7 +78,13 @@ class Reg extends Base
      */
      */
     public function checkMobileExist()
     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';
         return 'ok';
     }
     }