From b5d16a60042cea473d52d78d893e141cf13351d0 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 13 Jul 2023 10:46:20 +0800 Subject: [PATCH] 1 --- business/jxutils/unipush/push.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxutils/unipush/push.go b/business/jxutils/unipush/push.go index a711b2331..8bc21235d 100644 --- a/business/jxutils/unipush/push.go +++ b/business/jxutils/unipush/push.go @@ -136,10 +136,10 @@ func NotifyImNewMessage(vendorStoreID string, vendorID int, offMsg string) error msg.MsgType = "newImMsg" msg.VendorName = model.VendorChineseNames[vendorID] msg.StoreTitle = store.Name - msg.Context = "老板,你有新的用户消息,请及时查看!" + msg.Context = offMsg //context, _ := json.Marshal(msg) - body := fmt.Sprintf(msg.Context+"(%s)", model.VendorChineseNames[vendorID]) - pushMsgByUniApp(store.ID, store.Name, cid, offMsg, body, SoundsFileNewImMsg, FlagIm) + body := fmt.Sprintf("老板,你有新的用户消息,请及时查看!"+"(%s)", model.VendorChineseNames[vendorID]) + pushMsgByUniApp(store.ID, store.Name, cid, msg.Context, body, SoundsFileNewImMsg, FlagIm) return err }