Skip to content

Commit 2a295bc

Browse files
committed
result_code
1 parent 4d4d98f commit 2a295bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pay/base/http.go

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type Response struct {
2121
ReturnMsg string `json:"return_msg"`
2222
ErrCode string `json:"err_code"`
2323
ErrCodeDes string `json:"err_code_des"`
24+
ResultCode string `json:"result_code"`
2425
Data util.Params `json:"data"`
2526
Detail string `json:"detail"`
2627
}
@@ -80,6 +81,7 @@ func ProcessResponseXML(xmlStr string) (*Response, error) {
8081
response.ReturnMsg = params.GetString("return_msg")
8182
response.ErrCode = params.GetString("err_code")
8283
response.ErrCodeDes = params.GetString("err_code_des")
84+
response.ResultCode = params.GetString("result_code")
8385
response.Data = params
8486

8587
return &response, nil

0 commit comments

Comments
 (0)