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