fix bug: send all not send msg 2 all user

This commit is contained in:
wangchuxiao 2023-07-31 11:02:00 +08:00
parent a73d8fe4f6
commit 75c028aa9b

View File

@ -262,8 +262,8 @@ func (m *MessageApi) BatchSendMsg(c *gin.Context) {
apiresp.GinError(c, err)
return
}
recvIDs = append(recvIDs, recvIDsPart...)
if len(recvIDsPart) < showNumber {
recvIDs = append(recvIDs, recvIDsPart...)
break
}
pageNumber++