This commit is contained in:
ASUS 2025-10-17 17:09:37 +08:00
parent 5a92485250
commit 52f4760743
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class ApplySmsTemp implements Consumer
}
try {
// 查询没有提交审核的模版
$temp = Db::table('sms_shop_template')->where(['id' => $shop_template_id])->where('status', 'in', [0, -2, 2])->find();
$temp = Db::table('sms_shop_template')->where(['id' => $shop_template_id])->where('status', 'in', [0, -2])->find();
if($temp) {
// 处理替换内容
$templateContent_arr = ShopInfo::handleSmsTemplates($temp['content']);
@ -63,7 +63,7 @@ class ApplySmsTemp implements Consumer
'status' => $status,
'template_code' => $template_code,
'content_json' => $templateContent_json,
'reple_json' => json_encode($templateContent_arr),
'reple_json' => json_encode($templateContent_arr, 256),
'fail_msg' => $fail_msg,
'order_id' => $order_id,
'update_time' => date('Y-m-d H:i:s'),
@ -90,7 +90,7 @@ class ApplySmsTemp implements Consumer
$update_data = [
'status' => $status,
'content_json' => $templateContent_json,
'reple_json' => json_encode($templateContent_arr),
'reple_json' => json_encode($templateContent_arr, 256),
'fail_msg' => $fail_msg,
'update_time' => date('Y-m-d H:i:s'),
];