Browse Source

正式短信配置

lizhen_gitee 6 months ago
parent
commit
e580934cb7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Sms.php

+ 2 - 2
application/api/controller/Sms.php

@@ -57,9 +57,9 @@ class Sms extends Api
                 $this->error(__('未注册'));
             }
         }
-        if (!Hook::get('sms_send')) {
+        /*if (!Hook::get('sms_send')) {
             $this->error(__('请在后台插件管理安装短信验证插件'));
-        }
+        }*/
         $ret = Smslib::send($mobile, null, $event);
         if ($ret) {
             $this->success(__('发送成功'));