This commit is contained in:
wangchuxiao 2022-03-29 15:50:20 +08:00
parent 7eeb67be28
commit 416f87f4bb
2 changed files with 4 additions and 4 deletions

View File

@ -166,9 +166,9 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
groupUserIDList = append(groupUserIDList, userIDList...)
}
var userIDList []string
userIDList = append(groupUserIDList, tagUserIDList...)
userIDList = append(groupUserIDList, groupUserIDList...)
userIDList = append(groupUserIDList, req.UserList...)
userIDList = append(userIDList, tagUserIDList...)
userIDList = append(userIDList, groupUserIDList...)
userIDList = append(userIDList, req.UserList...)
userIDList = utils.RemoveUserIDRepByMap(userIDList)
for i, userID := range userIDList {
if userID == req.SendID {

View File

@ -568,7 +568,7 @@ func (d *DataBases) GetTagSendLogs(userID string, showNumber, pageNumber int32)
}
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 {