|
|
@ -2,6 +2,7 @@ package user
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
@ -166,6 +167,7 @@ func (s *userServer) UserRegister(ctx context.Context, req *pbuser.UserRegisterR
|
|
|
|
return nil, errs.ErrArgs.Wrap("users is empty")
|
|
|
|
return nil, errs.ErrArgs.Wrap("users is empty")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if req.Secret != config.Config.Secret {
|
|
|
|
if req.Secret != config.Config.Secret {
|
|
|
|
|
|
|
|
log.ZDebug(ctx, "UserRegister", config.Config.Secret, req.Secret)
|
|
|
|
return nil, errs.ErrIdentity.Wrap("secret invalid")
|
|
|
|
return nil, errs.ErrIdentity.Wrap("secret invalid")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if utils.DuplicateAny(req.Users, func(e *sdkws.UserInfo) string { return e.UserID }) {
|
|
|
|
if utils.DuplicateAny(req.Users, func(e *sdkws.UserInfo) string { return e.UserID }) {
|
|
|
|