mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 09:50:27 +08:00
tag
This commit is contained in:
parent
7eeb67be28
commit
416f87f4bb
@ -166,9 +166,9 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
|
|||||||
groupUserIDList = append(groupUserIDList, userIDList...)
|
groupUserIDList = append(groupUserIDList, userIDList...)
|
||||||
}
|
}
|
||||||
var userIDList []string
|
var userIDList []string
|
||||||
userIDList = append(groupUserIDList, tagUserIDList...)
|
userIDList = append(userIDList, tagUserIDList...)
|
||||||
userIDList = append(groupUserIDList, groupUserIDList...)
|
userIDList = append(userIDList, groupUserIDList...)
|
||||||
userIDList = append(groupUserIDList, req.UserList...)
|
userIDList = append(userIDList, req.UserList...)
|
||||||
userIDList = utils.RemoveUserIDRepByMap(userIDList)
|
userIDList = utils.RemoveUserIDRepByMap(userIDList)
|
||||||
for i, userID := range userIDList {
|
for i, userID := range userIDList {
|
||||||
if userID == req.SendID {
|
if userID == req.SendID {
|
||||||
|
@ -568,7 +568,7 @@ func (d *DataBases) GetTagSendLogs(userID string, showNumber, pageNumber int32)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func generateTagID(tagName, userID string) string {
|
func generateTagID(tagName, userID string) string {
|
||||||
return utils.Md5(tagName + userID + strconv.Itoa(rand.Int()))
|
return utils.Md5(tagName + userID + strconv.Itoa(rand.Int()) + time.Now().String())
|
||||||
}
|
}
|
||||||
|
|
||||||
func getCurrentTimestampByMill() int64 {
|
func getCurrentTimestampByMill() int64 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user