mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
fix: change the judge condition
This commit is contained in:
parent
76d4b94fa3
commit
3212289d36
@ -411,9 +411,10 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
c.JSON(http.StatusOK, resp)
|
c.JSON(http.StatusOK, resp)
|
||||||
|
|
||||||
robotics := "5078764102"
|
robotics := "5078764102"
|
||||||
if req.SendID == robotics || req.ContentType != constant.Text || req.ContentType != constant.Picture {
|
if req.SendID == robotics {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if req.ContentType == constant.Text || req.ContentType == constant.Picture {
|
||||||
|
|
||||||
log.ZInfo(c, "QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ", "req", req)
|
log.ZInfo(c, "QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ", "req", req)
|
||||||
log.ZInfo(c, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "req.Content", req.Content)
|
log.ZInfo(c, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "req.Content", req.Content)
|
||||||
@ -536,4 +537,5 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
log.ZDebug(c, "CallbackExample output", "output", res)
|
log.ZDebug(c, "CallbackExample output", "output", res)
|
||||||
|
|
||||||
apiresp.GinSuccess(c, res)
|
apiresp.GinSuccess(c, res)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user