From 72bd5d21e9bd53cf09a453dd92da67e809c79078 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Fri, 28 Aug 2026 22:18:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=B2=BE=E7=AE=80=E6=8B=A6?= =?UTF-8?q?=E6=88=AA/=E5=B7=B2=E6=89=93=E5=8C=85=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=96=87=E6=A1=88=EF=BC=8C=E9=80=82=E9=85=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=92=AD=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 订单拦截/已打包推送 msg 改为短文案('订单拦截'/'订单已打包') - 完整状态信息保留在日志中 --- app/service/gzt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/service/gzt.js b/app/service/gzt.js index c926ab3..5aaad43 100644 --- a/app/service/gzt.js +++ b/app/service/gzt.js @@ -220,7 +220,7 @@ class Gzt extends Service { await this._packWmsOrder(gzt, order, sid); } else if (order.FLAG != 0 || order.ISLOCK == 1) { ctx.logger.info(`[scan] 订单-已拦截/取消,拒绝打包 | barcode=${barcode} | FLAG=${order.FLAG} | ISLOCK=${order.ISLOCK}`); - this._push(sid, 'msg', '订单已拦截/取消,禁止打包'); + this._push(sid, 'msg', '订单拦截'); } else if (order.PLSENDFLAG === 0) { ctx.logger.info(`[scan] 订单-未复核,拒绝打包 | barcode=${barcode} | PLSENDFLAG=${order.PLSENDFLAG}`); this._push(sid, 'msg', '订单未复核'); @@ -291,12 +291,12 @@ class Gzt extends Service { const check = this.ctx.service.newWms.checkOrderStatus(order); if (check.intercepted) { ctx.logger.info(`[scan] 外部WMS订单已拦截/取消,拒绝打包 | POSTNUM=${order.POSTNUM} | status=${order.status} | intercept_flag=${order.intercept_flag}`); - this._push(sid, 'msg', '订单已拦截/取消,禁止打包'); + this._push(sid, 'msg', '订单拦截'); return; } if (check.packed) { ctx.logger.info(`[scan] 外部WMS订单已打包,跳过回传 | POSTNUM=${order.POSTNUM} | pack_flag=${order.pack_flag} | pack_status=${order.pack_status}`); - this._push(sid, 'msg', '订单已打包,请勿重复打包'); + this._push(sid, 'msg', '订单已打包'); return; } // 设置工作台ID,使用 gzt 表的 other_id