通联收银宝退款接口修改

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) {
data, err := ioutil.ReadAll(request.Body)
call = &CallBackResult{}
json.Unmarshal(data, &call)
if err != nil {
return nil, err

View File

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