diff --git a/platformapi/ebaiapi/callback.go b/platformapi/ebaiapi/callback.go index 4f2ebdb3..9bc8ce8c 100644 --- a/platformapi/ebaiapi/callback.go +++ b/platformapi/ebaiapi/callback.go @@ -114,10 +114,10 @@ type ImMessageSend struct { type PayLoad struct { SenderID string `json:"senderId"` //角色+随机数字串;角色:10(用户)、20(骑手)、30(商家)、32(连锁账号登录) ReceiverIDs []string `json:"receiverIds"` //角色+随机数字串;角色:10(用户)、20(骑手)、30(商家)、32(连锁账号登录) - CreateTime int64 `json:"createTime"` //时间戳 + CreateTime int `json:"createTime"` //时间戳 GroupID string `json:"groupId"` //会话id MsgID string `json:"msgId"` //消息ID - ContentType int `json:"contentType"` //消息类型,枚举值:1-普通文本 + ContentType string `json:"contentType"` //消息类型,枚举值:1-普通文本 Content string `json:"content"` } diff --git a/platformapi/ebaiapi/im_test.go b/platformapi/ebaiapi/im_test.go index d9b9ea62..ccf22c33 100644 --- a/platformapi/ebaiapi/im_test.go +++ b/platformapi/ebaiapi/im_test.go @@ -32,3 +32,9 @@ func TestSendMsg(t *testing.T) { }) fmt.Println(err) } + +func TestNew(t *testing.T) { + a := 1698388286149 + b := int(a / 1000) + fmt.Println(b) +}