From 6ba8d643db957a8f528b14644b3a94dd22d6d289 Mon Sep 17 00:00:00 2001 From: Anyon <zoujingli@qq.com> Date: Wed, 18 Sep 2019 09:30:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E6=9C=8D=E5=8A=A1=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/store/controller/Config.php | 2 +- application/store/controller/api/member/Center.php | 2 +- application/store/service/ExtendService.php | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/application/store/controller/Config.php b/application/store/controller/Config.php index 74d2ae888..e27b19673 100644 --- a/application/store/controller/Config.php +++ b/application/store/controller/Config.php @@ -37,7 +37,7 @@ class Config extends Controller { $this->title = '商城参数配置'; $this->applyCsrfToken('save'); - $this->query = ExtendService::querySmsBalance(); + $this->query = ExtendService::queryChinaSmsBalance(); $this->query2 = ExtendService::querySmsBalance2(); $this->fetch(); } diff --git a/application/store/controller/api/member/Center.php b/application/store/controller/api/member/Center.php index bf461fb75..f2cb2b358 100644 --- a/application/store/controller/api/member/Center.php +++ b/application/store/controller/api/member/Center.php @@ -81,7 +81,7 @@ class Center extends Member $this->error('获取短信模板失败,联系管理员配置!'); } $cache = cache($cachekey); - if (ExtendService::sendSms($this->mid, $phone, str_replace('{code}', $code, $content))) { + if (ExtendService::sendChinaSms($this->mid, $phone, str_replace('{code}', $code, $content))) { $dtime = ($cache['time'] + 120 < time()) ? 0 : (120 - time() + $cache['time']); $this->success('短信验证码发送成功!', ['time' => $dtime]); } else { diff --git a/application/store/service/ExtendService.php b/application/store/service/ExtendService.php index a38a2ba24..7cd073c43 100644 --- a/application/store/service/ExtendService.php +++ b/application/store/service/ExtendService.php @@ -41,7 +41,7 @@ class ExtendService { /** - * 发送短信验证码 + * 发送国内短信验证码 * @param string $mid 会员ID * @param string $phone 手机号 * @param string $content 短信内容 @@ -50,7 +50,7 @@ class ExtendService * @throws \think\Exception * @throws \think\exception\PDOException */ - public static function sendSms($mid, $phone, $content, $productid = '676767') + public static function sendChinaSms($mid, $phone, $content, $productid = '676767') { $tkey = date("YmdHis"); $data = [ @@ -68,12 +68,12 @@ class ExtendService } /** - * 查询短信余额 + * 查询国内短信余额 * @return array * @throws \think\Exception * @throws \think\exception\PDOException */ - public static function querySmsBalance() + public static function queryChinaSmsBalance() { $tkey = date("YmdHis"); $data = [