From ae033930439675243cfe210e941f96ea6ba77d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 20 Apr 2021 16:28:01 +0800 Subject: [PATCH] aa --- business/jxutils/unipush/push.go | 2 +- business/jxutils/weixinmsg/weixinmsg.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxutils/unipush/push.go b/business/jxutils/unipush/push.go index 190bef606..e0911e7fc 100644 --- a/business/jxutils/unipush/push.go +++ b/business/jxutils/unipush/push.go @@ -21,7 +21,7 @@ func pushToSingle(content, title string, storeID int) { if !globals.IsProductEnv() { return } - if storeID == 0{ + if storeID == 0 { return } storePushs, err := dao.GetStorePushClient(db, storeID, "") diff --git a/business/jxutils/weixinmsg/weixinmsg.go b/business/jxutils/weixinmsg/weixinmsg.go index cbef4d31c..122f18f13 100644 --- a/business/jxutils/weixinmsg/weixinmsg.go +++ b/business/jxutils/weixinmsg/weixinmsg.go @@ -882,6 +882,9 @@ func NotifyAdjustOrder(order *model.GoodsOrder) (err error) { if order.VendorID == model.VendorIDELM { return nil } + if len(order.Skus) == 0 { + return + } suffix := "" storeDetail, err := dao.GetStoreDetail(dao.GetDB(), jxutils.GetSaleStoreIDFromOrder(order), order.VendorID, "") if err == nil && storeDetail != nil {