mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 18:34:29 +08:00
fix: change the timestamp
This commit is contained in:
parent
523d5172ec
commit
f7aa34d815
@ -435,8 +435,6 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
|
|
||||||
output_token := &token{}
|
output_token := &token{}
|
||||||
|
|
||||||
log.ZDebug(c, "CallbackExample get User Token", "token", output_token)
|
|
||||||
|
|
||||||
data, err := http2.Post(c, url, header, input_token, 10)
|
data, err := http2.Post(c, url, header, input_token, 10)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZError(c, "CallbackExample get Sender token failed", err)
|
log.ZError(c, "CallbackExample get Sender token failed", err)
|
||||||
@ -473,7 +471,7 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
Content: content,
|
Content: content,
|
||||||
ContentType: req.ContentType,
|
ContentType: req.ContentType,
|
||||||
SessionType: req.SessionType,
|
SessionType: req.SessionType,
|
||||||
SendTime: time.Now().Unix(),
|
SendTime: time.Now().UnixNano() / 1e6,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -506,6 +504,7 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
ClientMsgID: output.Data.ClientMsgID,
|
ClientMsgID: output.Data.ClientMsgID,
|
||||||
SendTime: output.Data.SendTime,
|
SendTime: output.Data.SendTime,
|
||||||
}
|
}
|
||||||
|
log.ZDebug(c, "CallbackExample output", "output", res)
|
||||||
|
|
||||||
apiresp.GinSuccess(c, res)
|
apiresp.GinSuccess(c, res)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user