fix: store info mobile
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/pkg/utils"
|
||||
"lone-services/pkg/validate"
|
||||
store "lone-services/rpc/store/pb"
|
||||
"lone-services/services/store/internal/dao"
|
||||
"lone-services/services/store/internal/model"
|
||||
"strconv"
|
||||
|
||||
"lone-services/rpc/store/pb"
|
||||
"lone-services/services/store/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -51,12 +51,11 @@ func (l *InfoLogic) Info(in *store.IdRequest) (*store.Response, error) {
|
||||
if info.Id < utils.NumberOne {
|
||||
return l.fail(utils.ErrorNotFund)
|
||||
}
|
||||
if info.Id > utils.NumberZero {
|
||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||
info.AesMobile = info.UserMobile
|
||||
if dErr == nil {
|
||||
info.UserMobile = utils.DecryptPhoneReplace(mobile)
|
||||
}
|
||||
|
||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||
info.AesMobile = info.UserMobile
|
||||
if dErr == nil {
|
||||
info.UserMobile = mobile
|
||||
}
|
||||
return l.ok(info)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user