mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改阿里云短信服务
This commit is contained in:
parent
b10e8a009d
commit
ca4ec4b2ed
@ -68,16 +68,11 @@ class AlismsService
|
|||||||
public static function batchSend(array $PhoneNumbers, $TemplateCode, array $SignNames, array $TemplateParams, $SmsUpExtendCodes = [])
|
public static function batchSend(array $PhoneNumbers, $TemplateCode, array $SignNames, array $TemplateParams, $SmsUpExtendCodes = [])
|
||||||
{
|
{
|
||||||
$params = [];
|
$params = [];
|
||||||
$params["SignNameJson"] = $SignNames;
|
|
||||||
$params["TemplateCode"] = $TemplateCode;
|
$params["TemplateCode"] = $TemplateCode;
|
||||||
$params["PhoneNumberJson"] = $PhoneNumbers;
|
!empty($SmsUpExtendCodes) && $params["SmsUpExtendCodeJson"] = json_encode($SmsUpExtendCodes);
|
||||||
$params["TemplateParamJson"] = $TemplateParams;
|
$params["TemplateParamJson"] = json_encode($TemplateParams, JSON_UNESCAPED_UNICODE);
|
||||||
if (!empty($SmsUpExtendCodes)) {
|
$params["SignNameJson"] = json_encode($SignNames, JSON_UNESCAPED_UNICODE);
|
||||||
$params["SmsUpExtendCodeJson"] = json_encode($SmsUpExtendCodes);
|
$params["PhoneNumberJson"] = json_encode($PhoneNumbers, JSON_UNESCAPED_UNICODE);
|
||||||
}
|
|
||||||
$params["TemplateParamJson"] = json_encode($params["TemplateParamJson"], JSON_UNESCAPED_UNICODE);
|
|
||||||
$params["SignNameJson"] = json_encode($params["SignNameJson"], JSON_UNESCAPED_UNICODE);
|
|
||||||
$params["PhoneNumberJson"] = json_encode($params["PhoneNumberJson"], JSON_UNESCAPED_UNICODE);
|
|
||||||
if (!empty($params["SmsUpExtendCodeJson"]) && is_array($params["SmsUpExtendCodeJson"])) {
|
if (!empty($params["SmsUpExtendCodeJson"]) && is_array($params["SmsUpExtendCodeJson"])) {
|
||||||
$params["SmsUpExtendCodeJson"] = json_encode($params["SmsUpExtendCodeJson"], JSON_UNESCAPED_UNICODE);
|
$params["SmsUpExtendCodeJson"] = json_encode($params["SmsUpExtendCodeJson"], JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user