1
This commit is contained in:
@@ -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{}
|
||||
|
||||
@@ -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"` //最新一条消息发送时间
|
||||
|
||||
Reference in New Issue
Block a user