From 17938ffaa87a5dd696f4b3e8f59f4521a55350a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 9 Dec 2020 16:56:23 +0800 Subject: [PATCH] aa --- business/jxutils/unipush/push.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxutils/unipush/push.go b/business/jxutils/unipush/push.go index acd099a4d..f6da07b7e 100644 --- a/business/jxutils/unipush/push.go +++ b/business/jxutils/unipush/push.go @@ -50,6 +50,9 @@ func pushToSingle(content, title string, storeID int) { func NotifyNewOrder(order *model.GoodsOrder) { globals.SugarLogger.Debugf("NotifyNewOrder push begin orderID :[%v]", order.VendorOrderID) + if order == nil || len(order.Skus) == 0 { + return + } sb := new(strings.Builder) sb.WriteString("老板,") sb.WriteString(order.ConsigneeName)