feat: sale info

This commit is contained in:
zzw
2026-08-28 15:05:44 +08:00
parent 8bdd25dcb5
commit eb887198e9
14 changed files with 762 additions and 92 deletions
@@ -20,6 +20,8 @@ type DecryptMobileData struct {
Mobile string `json:"mobile"`
}
const encryptedPhoneLen = 72
func NewDecryptMobileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DecryptMobileLogic {
return &DecryptMobileLogic{
ctx: ctx,
@@ -38,6 +40,9 @@ func (l *DecryptMobileLogic) DecryptMobile(in *chore.DecryptMobileReq) (*chore.R
if originMobile == utils.StringEmpty {
return failResponse(utils.ErrorParams), nil
}
if len(originMobile) < encryptedPhoneLen {
return failResponse(utils.ErrorMobileError), nil
}
mobile, err := utils.DecryptPhone(originMobile)
if err != nil {