diff --git a/app/controller/template.js b/app/controller/template.js index 21cf12e..fdc767b 100644 --- a/app/controller/template.js +++ b/app/controller/template.js @@ -8,19 +8,6 @@ class TemplateController extends Controller { const result = await service.systems.setting.printTemplate.getXmlByTemplate(ctx.params.id); ctx.body = result; } - - /** - * 输出抖音面单自定义区模板 XML(douyin1.xml) - */ - async douyinCustomArea() { - const { ctx } = this; - ctx.type = 'application/xml'; - ctx.body = ` - - - ]]> - -`; - } + } module.exports = TemplateController; diff --git a/app/lib/printer_data_builder.js b/app/lib/printer_data_builder.js index f6f1c73..c21190e 100644 --- a/app/lib/printer_data_builder.js +++ b/app/lib/printer_data_builder.js @@ -1829,8 +1829,8 @@ function applyDouyinExpressFieldMapping(platform, skeleton, orderExpress, orderD } const customContent = contents[1]; if (!toTrimmedString(customContent.templateURL)) { - const baseUrl = toTrimmedString(customAreaBaseUrl) || 'http://www.ye4s.com'; - customContent.templateURL = baseUrl + '/mb/douyin1.xml'; + const baseUrl = toTrimmedString(customAreaBaseUrl) || 'http://qimen.wms.gztbyc.com'; + customContent.templateURL = baseUrl + '/mb/douyin.xml'; } customContent.data = isPlainObject(customContent.data) ? customContent.data : {}; customContent.data.productInfo = customProductInfo || '无拣货信息'; diff --git a/app/router.js b/app/router.js index 3492624..a395b88 100644 --- a/app/router.js +++ b/app/router.js @@ -64,8 +64,6 @@ module.exports = app => { // 打印模板 router.get('/template/xml/:id', controller.template.xml); - // 打印自定义区模板(抖音面单等) - router.get('/mb/douyin1.xml', controller.template.douyinCustomArea); // 打印台设置 router.get('/auth/printSetting/:code', controller.auth.printerSetting);