This commit is contained in:
richboo111
2023-09-25 15:08:47 +08:00
parent 30cf99eec3
commit 446b412c56
4 changed files with 49 additions and 0 deletions

View File

@@ -69,6 +69,10 @@ func ReadMsgFromClient(vendorID int, elmAppID string, msg interface{}) error {
UserID: utils.Int2Str(pushContent.OpenUserID),
LatestMsg: pushContent.MsgContent,
LatestTime: pushContent.Cts,
OrderID: "",
}
if pushContent.OrderID != 0 {
userList.OrderID = utils.Int2Str(pushContent.OrderID)
}
}
if vendorID == VendorIDELM {
@@ -127,8 +131,12 @@ func ReadMsgFromVendor(vendorID int, elmAppID string, msg []byte) error {
UserID: utils.Int2Str(PushContentReq.OpenUserID),
LatestMsg: PushContentReq.MsgContent,
LatestTime: PushContentReq.Cts,
OrderID: "",
}
vendorStoreID = PushContentReq.AppPoiCode
if PushContentReq.OrderID != 0 {
userList.OrderID = utils.Int2Str(PushContentReq.OrderID)
}
}
if vendorID == VendorIDELM {
var ElmData = ebaiapi.ImMessageSend{}

View File

@@ -22,6 +22,7 @@ type JXMsg struct {
type UserMessageList struct {
VendorID int `json:"vendorID"` //平台品牌 1-美团 3-饿了么
UserID string `json:"userID"` //用户ID
OrderID string `json:"orderID"` //已下单才有
NewMessageNum int `json:"NewMessageNum"` //新消息数量
LatestMsg string `json:"latestMsg"` //最新一条消息
LatestTime int `json:"latestTime"` //最新一条消息发送时间