This commit is contained in:
Mrx
2026-04-07 12:54:44 +08:00
parent 2a6ec6e3ca
commit 35a2eb03d8
2 changed files with 3 additions and 3 deletions

View File

@@ -686,7 +686,7 @@ type FLXG9C1DReq struct {
type DWBG5SAMReq struct { type DWBG5SAMReq struct {
IDCard string `json:"id_card" validate:"required,validIDCard"` IDCard string `json:"id_card" validate:"required,validIDCard"`
Name string `json:"name" validate:"required,min=1,validName"` Name string `json:"name" validate:"required,min=1,validName"`
Phone string `json:"phone" validate:"required,min=11,max=11,validMobileNo"` MobileNo string `json:"mobile_no" validate:"required,min=11,max=11,validMobileNo"`
AuthorizationURL string `json:"authorization_url" validate:"required,authorization_url"` AuthorizationURL string `json:"authorization_url" validate:"required,authorization_url"`
} }

View File

@@ -31,7 +31,7 @@ func ProcessDWBG5SAMRequest(ctx context.Context, params []byte, deps *processors
return nil, errors.Join(processors.ErrSystem, err) return nil, errors.Join(processors.ErrSystem, err)
} }
encryptedPhone, err := deps.ZhichaService.Encrypt(paramsDto.Phone) encryptedMobileNo, err := deps.ZhichaService.Encrypt(paramsDto.MobileNo)
if err != nil { if err != nil {
return nil, errors.Join(processors.ErrSystem, err) return nil, errors.Join(processors.ErrSystem, err)
} }
@@ -39,7 +39,7 @@ func ProcessDWBG5SAMRequest(ctx context.Context, params []byte, deps *processors
reqData := map[string]interface{}{ reqData := map[string]interface{}{
"name": encryptedName, "name": encryptedName,
"idCard": encryptedIDCard, "idCard": encryptedIDCard,
"phone": encryptedPhone, "phone": encryptedMobileNo,
"accessoryUrl": paramsDto.AuthorizationURL, "accessoryUrl": paramsDto.AuthorizationURL,
} }