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 {