|
|
@ -20,6 +20,7 @@ import (
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
"sync"
|
|
|
|
"sync"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type officeServer struct {
|
|
|
|
type officeServer struct {
|
|
|
@ -213,6 +214,12 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
|
|
|
|
userIDList = append(userIDList[:i], userIDList[i+1:]...)
|
|
|
|
userIDList = append(userIDList[:i], userIDList[i+1:]...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if unsafe.Sizeof(userIDList) > 1024*1024 {
|
|
|
|
|
|
|
|
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "size", unsafe.Sizeof(userIDList))
|
|
|
|
|
|
|
|
resp.CommonResp.ErrMsg = constant.ErrSendLimit.ErrMsg
|
|
|
|
|
|
|
|
resp.CommonResp.ErrCode = constant.ErrSendLimit.ErrCode
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "total userIDList result: ", userIDList)
|
|
|
|
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "total userIDList result: ", userIDList)
|
|
|
|
user, err := imdb.GetUserByUserID(req.SendID)
|
|
|
|
user, err := imdb.GetUserByUserID(req.SendID)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|