通联收银宝退款接口修改

This commit is contained in:
苏尹岚
2020-03-02 09:24:51 +08:00
parent 0f7b5ead1a
commit 1b50d66657
2 changed files with 8 additions and 10 deletions

View File

@@ -43,7 +43,6 @@ type CallBackResult struct {
func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err error) { func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err error) {
data, err := ioutil.ReadAll(request.Body) data, err := ioutil.ReadAll(request.Body)
call = &CallBackResult{}
json.Unmarshal(data, &call) json.Unmarshal(data, &call)
if err != nil { if err != nil {
return nil, err return nil, err

View File

@@ -64,7 +64,6 @@ type PayInfo struct {
Package string `json:"package"` Package string `json:"package"`
SignType string `json:"signType"` SignType string `json:"signType"`
PaySign string `json:"paySign"` PaySign string `json:"paySign"`
PrepayID string `json:"prepayID"`
} }
type PayRefundParam struct { type PayRefundParam struct {
@@ -79,19 +78,19 @@ type PayRefundParam struct {
} }
type PayRefundResult struct { type PayRefundResult struct {
RetCode string `json:"retCode"` RetCode string `json:"retcode"`
RetMsg string `json:"retMsg"` RetMsg string `json:"retMsg"`
CusID string `json:"cusID"` CusID string `json:"cusid"`
AppID string `json:"appID"` AppID string `json:"appid"`
TrxID string `json:"trxID"` TrxID string `json:"trxid"`
Reqsn string `json:"reqsn"` Reqsn string `json:"reqsn"`
TrxStatus string `json:"trxStatus"` TrxStatus string `json:"trxstatus"`
FinTime string `json:"finTime"` FinTime string `json:"fintime"`
ErrMsg string `json:"errMsg"` ErrMsg string `json:"errMsg"`
RandomStr string `json:"randomStr"` RandomStr string `json:"randomstr"`
Sign string `json:"sign"` Sign string `json:"sign"`
Fee int `json:"fee"` Fee int `json:"fee"`
TrxCode string `json:"trxCode"` TrxCode string `json:"trxcode"`
} }
func New(appID, appKey, cusID, subAppid string, config ...*platformapi.APIConfig) *API { func New(appID, appKey, cusID, subAppid string, config ...*platformapi.APIConfig) *API {