shop_id
This commit is contained in:
parent
5a92485250
commit
52f4760743
|
|
@ -27,7 +27,7 @@ class ApplySmsTemp implements Consumer
|
||||||
}
|
}
|
||||||
try {
|
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) {
|
if($temp) {
|
||||||
// 处理替换内容
|
// 处理替换内容
|
||||||
$templateContent_arr = ShopInfo::handleSmsTemplates($temp['content']);
|
$templateContent_arr = ShopInfo::handleSmsTemplates($temp['content']);
|
||||||
|
|
@ -63,7 +63,7 @@ class ApplySmsTemp implements Consumer
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
'template_code' => $template_code,
|
'template_code' => $template_code,
|
||||||
'content_json' => $templateContent_json,
|
'content_json' => $templateContent_json,
|
||||||
'reple_json' => json_encode($templateContent_arr),
|
'reple_json' => json_encode($templateContent_arr, 256),
|
||||||
'fail_msg' => $fail_msg,
|
'fail_msg' => $fail_msg,
|
||||||
'order_id' => $order_id,
|
'order_id' => $order_id,
|
||||||
'update_time' => date('Y-m-d H:i:s'),
|
'update_time' => date('Y-m-d H:i:s'),
|
||||||
|
|
@ -90,7 +90,7 @@ class ApplySmsTemp implements Consumer
|
||||||
$update_data = [
|
$update_data = [
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
'content_json' => $templateContent_json,
|
'content_json' => $templateContent_json,
|
||||||
'reple_json' => json_encode($templateContent_arr),
|
'reple_json' => json_encode($templateContent_arr, 256),
|
||||||
'fail_msg' => $fail_msg,
|
'fail_msg' => $fail_msg,
|
||||||
'update_time' => date('Y-m-d H:i:s'),
|
'update_time' => date('Y-m-d H:i:s'),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue