feat: analysis user auth and ws
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"lone-services/services/store/internal/model"
|
||||
"strconv"
|
||||
|
||||
"lone-services/rpc/store/pb"
|
||||
store "lone-services/rpc/store/pb"
|
||||
"lone-services/services/store/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -46,7 +46,7 @@ func (l *GetInfoByIdLogic) GetInfoById(in *store.IdRequest) (*store.InfoResponse
|
||||
|
||||
if info.Id > utils.NumberZero {
|
||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||
if dErr == nil {
|
||||
if dErr != nil {
|
||||
return nil, status.Error(codes.Internal, utils.ErrorEncryptAesError.Msg)
|
||||
}
|
||||
info.UserMobile = mobile
|
||||
|
||||
Reference in New Issue
Block a user