This commit is contained in:
richboo111
2023-07-17 09:28:45 +08:00
parent 3c31bdeda2
commit 4b3201c807

View File

@@ -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
}