quguofeng před 1 rokem
rodič
revize
051d8ba00a
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      application/api/controller/User.php

+ 2 - 1
application/api/controller/User.php

@@ -5,6 +5,7 @@ namespace app\api\controller;
 use app\common\controller\Api;
 use app\common\library\Ems;
 use app\common\library\Sms;
+use app\common\library\Sms as Smslib;
 use app\common\model\Leave;
 use fast\Random;
 use think\Config;
@@ -53,7 +54,7 @@ class User extends Api
         if (!Validate::regex($mobile, "^1\d{10}$")) {
             $this->error(__('Mobile is incorrect'));
         }
-        if (!Sms::check($mobile, $captcha, 'mobilelogin')) {
+        if (!Sms::check($mobile, $captcha, 'register')) {
             $this->error(__('Captcha is incorrect'));
         }
         $user = \app\common\model\User::getByMobile($mobile);