日志修改
This commit is contained in:
@@ -31,17 +31,17 @@ class ApplySmsTemp implements Consumer
|
||||
if($temp) {
|
||||
// 处理替换内容
|
||||
$templateContent_arr = ShopInfo::handleSmsTemplates($temp['content']);
|
||||
$templateContent_json = json_encode($templateContent_arr);
|
||||
$templateContent_json = json_encode(ShopInfo::handleSmsTemplatesrule($temp['content']), 256);
|
||||
$content = replace_placeholder_keys($temp['content'], $templateContent_arr);
|
||||
// 待申请
|
||||
if($temp['status'] == 0) {
|
||||
$data = [
|
||||
'TemplateName' => $temp['title'],
|
||||
'TemplateContent' => $content,
|
||||
'TemplateRule' => $templateContent_json,
|
||||
'Remark' => !empty($temp['scene_detail']) ? $temp['scene_detail'] : '',
|
||||
'TemplateType' => 2,
|
||||
'RelatedSignName' => config('cons.sms_sign'),
|
||||
'templateName' => $temp['title'],
|
||||
'templateContent' => $content,
|
||||
'templateRule' => $templateContent_json,
|
||||
'remark' => !empty($temp['scene_detail']) ? $temp['scene_detail'] : '',
|
||||
'templateType' => 2,
|
||||
'relatedSignName' => config('cons.sms_sign'),
|
||||
];
|
||||
// 调用接口
|
||||
$res = AlibabaSms::CreateSmsTemplate($data);
|
||||
|
||||
Reference in New Issue
Block a user