From 33225c941d0b7e9098443174d0cf87baeb337a82 Mon Sep 17 00:00:00 2001 From: ljl Date: Wed, 17 Jan 2024 18:22:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/libs/services/OrderPrint/InvoiceTplService.php | 2 +- app/libs/services/OrderPrint/ItemTagTplService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/libs/services/OrderPrint/InvoiceTplService.php b/app/libs/services/OrderPrint/InvoiceTplService.php index fcd1695..0fb6887 100644 --- a/app/libs/services/OrderPrint/InvoiceTplService.php +++ b/app/libs/services/OrderPrint/InvoiceTplService.php @@ -67,7 +67,7 @@ class InvoiceTplService extends AbstractService { } else { $insertData = [ 'mallId' => $mallId, - 'tplName' => '自定义发货单模板', + 'tplName' => $params['tplName'] ?: '自定义发货单模板', 'tplWidth' => 210, 'tplHeight' => 297, 'hasHole' => 0, diff --git a/app/libs/services/OrderPrint/ItemTagTplService.php b/app/libs/services/OrderPrint/ItemTagTplService.php index 24c4227..18134f0 100644 --- a/app/libs/services/OrderPrint/ItemTagTplService.php +++ b/app/libs/services/OrderPrint/ItemTagTplService.php @@ -67,7 +67,7 @@ class ItemTagTplService extends AbstractService { } else { $insertData = [ 'mall_id' => $mallId, - 'tpl_name' => '自定义配货标签模板', + 'tpl_name' => $params['tplName'] ?: '自定义配货标签模板', 'tpl_width' => 70, 'tpl_height' => 100, 'is_default' => 0,