通联宝退退款修改
This commit is contained in:
@@ -79,14 +79,14 @@ 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"`
|
||||||
@@ -156,7 +156,7 @@ func (a *API) AccessAPI(action string, bizParams map[string]interface{}) (retVal
|
|||||||
returnCode := utils.Interface2String(jsonResult1["trxstatus"])
|
returnCode := utils.Interface2String(jsonResult1["trxstatus"])
|
||||||
if returnCode != TrxStatusSuccess {
|
if returnCode != TrxStatusSuccess {
|
||||||
errLevel = platformapi.ErrLevelGeneralFail
|
errLevel = platformapi.ErrLevelGeneralFail
|
||||||
err = utils.NewErrorCode(utils.Interface2String(jsonResult1["errmsg"]), returnCode)
|
err = utils.NewErrorCode(utils.Interface2String(jsonResult1["errmsg"])+utils.Interface2String(jsonResult1["retmsg"]), returnCode)
|
||||||
baseapi.SugarLogger.Debugf("tonglianpay AccessAPI failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
baseapi.SugarLogger.Debugf("tonglianpay AccessAPI failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||||
}
|
}
|
||||||
retVal = jsonResult1
|
retVal = jsonResult1
|
||||||
|
|||||||
Reference in New Issue
Block a user