日志修改

This commit is contained in:
2025-10-16 15:00:42 +08:00
parent c26095df31
commit e5015f1981
7 changed files with 161 additions and 99 deletions

View File

@@ -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);