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