From 6ca352926d120cf9493c62b31e1b9693d8ed9c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 2 Mar 2020 09:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=81=94=E5=AE=9D=E9=80=80=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/tonglianpayapi/tonglianpayapi.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platformapi/tonglianpayapi/tonglianpayapi.go b/platformapi/tonglianpayapi/tonglianpayapi.go index b0791ac0..fd26c851 100644 --- a/platformapi/tonglianpayapi/tonglianpayapi.go +++ b/platformapi/tonglianpayapi/tonglianpayapi.go @@ -79,14 +79,14 @@ type PayRefundParam struct { type PayRefundResult struct { RetCode string `json:"retcode"` - RetMsg string `json:"retMsg"` + RetMsg string `json:"retmsg"` CusID string `json:"cusid"` AppID string `json:"appid"` TrxID string `json:"trxid"` Reqsn string `json:"reqsn"` TrxStatus string `json:"trxstatus"` FinTime string `json:"fintime"` - ErrMsg string `json:"errMsg"` + ErrMsg string `json:"errmsg"` RandomStr string `json:"randomstr"` Sign string `json:"sign"` Fee int `json:"fee"` @@ -156,7 +156,7 @@ func (a *API) AccessAPI(action string, bizParams map[string]interface{}) (retVal returnCode := utils.Interface2String(jsonResult1["trxstatus"]) if returnCode != TrxStatusSuccess { 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)) } retVal = jsonResult1