chuweiqiang 1 年之前
父节点
当前提交
d4594b42b0
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      application/api/controller/User.php

+ 4 - 4
application/api/controller/User.php

@@ -123,10 +123,10 @@ class User extends Api
         if ($mobile && !Validate::regex($mobile, "^1\d{10}$")) {
         if ($mobile && !Validate::regex($mobile, "^1\d{10}$")) {
             $this->error(__('Mobile is incorrect'));
             $this->error(__('Mobile is incorrect'));
         }
         }
-        $ret = Sms::check($mobile, $code, 'register');
-        if (!$ret) {
-            $this->error(__('Captcha is incorrect'));
-        }
+//        $ret = Sms::check($mobile, $code, 'register');
+//        if (!$ret) {
+//            $this->error(__('Captcha is incorrect'));
+//        }
         $ret = $this->auth->register($username, $password, $email, $mobile, []);
         $ret = $this->auth->register($username, $password, $email, $mobile, []);
         if ($ret) {
         if ($ret) {
             $data = ['userinfo' => $this->auth->getUserinfo()];
             $data = ['userinfo' => $this->auth->getUserinfo()];