浏览代码

正式短信配置

lizhen_gitee 6 月之前
父节点
当前提交
e580934cb7
共有 1 个文件被更改,包括 2 次插入2 次删除
  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(__('未注册'));
                 $this->error(__('未注册'));
             }
             }
         }
         }
-        if (!Hook::get('sms_send')) {
+        /*if (!Hook::get('sms_send')) {
             $this->error(__('请在后台插件管理安装短信验证插件'));
             $this->error(__('请在后台插件管理安装短信验证插件'));
-        }
+        }*/
         $ret = Smslib::send($mobile, null, $event);
         $ret = Smslib::send($mobile, null, $event);
         if ($ret) {
         if ($ret) {
             $this->success(__('发送成功'));
             $this->success(__('发送成功'));