fix: store info mobile
This commit is contained in:
@@ -55,7 +55,7 @@ func (l *InfoLogic) Info(in *store.IdRequest) (*store.Response, error) {
|
|||||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||||
info.AesMobile = info.UserMobile
|
info.AesMobile = info.UserMobile
|
||||||
if dErr == nil {
|
if dErr == nil {
|
||||||
info.UserMobile = mobile
|
info.UserMobile = utils.DecryptPhoneReplace(mobile)
|
||||||
}
|
}
|
||||||
return l.ok(info)
|
return l.ok(info)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,11 +46,9 @@ func (l *WebInfoLogic) WebInfo(in *store.EmptyRequest) (*store.Response, error)
|
|||||||
if info.Id < utils.NumberOne {
|
if info.Id < utils.NumberOne {
|
||||||
return l.fail(utils.ErrorNotFund)
|
return l.fail(utils.ErrorNotFund)
|
||||||
}
|
}
|
||||||
if info.Id > utils.NumberZero {
|
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
if dErr == nil {
|
||||||
if dErr == nil {
|
info.UserMobile = mobile
|
||||||
info.UserMobile = utils.DecryptPhoneReplace(mobile)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return l.ok(info)
|
return l.ok(info)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user