This commit is contained in:
richboo111
2023-07-13 10:46:20 +08:00
parent de40be335c
commit b5d16a6004

View File

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