This commit is contained in:
邹宗楠
2023-06-29 10:13:15 +08:00
parent b3c3c09d56
commit f7bb3bc8dc
2 changed files with 6 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ func (a *API) UserApplyRefund(c *http.Request) (*UserApplyRefundCallBack, error)
return nil, err
}
var result *UserApplyRefundCallBack
if err := json.Unmarshal(data, result); err != nil {
if err := json.Unmarshal(data, &result); err != nil {
return nil, err
}
return result, nil
@@ -117,7 +117,7 @@ func (a *API) UserCancelRefundApply(c *http.Request) (*UserCancelRefundApply, er
return nil, err
}
var result *UserCancelRefundApply
if err := json.Unmarshal(data, result); err != nil {
if err := json.Unmarshal(data, &result); err != nil {
return nil, err
}
return result, nil
@@ -148,7 +148,7 @@ func (a *API) RefundOrderFinish(c *http.Request) (*RefundOrderFinish, error) {
return nil, nil
}
var result *RefundOrderFinish
if err := json.Unmarshal(data, result); err != nil {
if err := json.Unmarshal(data, &result); err != nil {
return nil, err
}
return result, nil