1
This commit is contained in:
@@ -335,12 +335,18 @@ func (a *API) GetMerchantReportStatus(orgCode, agentNo, externalCustomerNo strin
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if imgSupplementResp.Code != "200" {
|
||||
if imgSupplementResp.Code != Success {
|
||||
return nil, fmt.Errorf(imgSupplementResp.Message)
|
||||
}
|
||||
|
||||
base64DecryData, _ := base64.StdEncoding.DecodeString(imgSupplementResp.Data)
|
||||
resultData, err := DecryptByPublicKey(base64DecryData, PublicKeyBegin)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
openUnionpayMerchantVo := &OpenUnionpayMerchantVo{}
|
||||
if err = json.Unmarshal([]byte(imgSupplementResp.Data), openUnionpayMerchantVo); err != nil {
|
||||
if err = json.Unmarshal(resultData, openUnionpayMerchantVo); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user