From 9d17f69f385acc3b6526c359ff67546652f4fc2d Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 31 May 2022 19:15:49 +0800 Subject: [PATCH] update --- pay/pay_by_kudian.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pay/pay_by_kudian.go b/pay/pay_by_kudian.go index 7854bb1..212c615 100644 --- a/pay/pay_by_kudian.go +++ b/pay/pay_by_kudian.go @@ -108,16 +108,16 @@ func WxAppletPayByKuDian(payParams *md.KuDianWxPayParams, isPrd bool) (interface } // 酷点 - 检查返回参数 -func CheckAllCallbackParamsByKuDian(c *gin.Context) (interface{}, error) { +func CheckAllCallbackParamsByKuDian(c *gin.Context) (md.KuDianPayCallbackResp, error) { var dataWx md.KuDianPayCallback + var dataPay md.KuDianPayCallbackResp if err := c.ShouldBindJSON(&dataWx); err != nil { fmt.Println(">>>>>>>>>CheckAllCallbackParamsByKuDian>>>>>>>>>>>>>>", err) - return nil, err + return dataPay, err } - var dataPay md.KuDianPayCallbackResp if err := json.Unmarshal([]byte(dataWx.Result), &dataPay); err != nil { fmt.Println(">>>>>>>>>CheckAllCallbackParamsByKuDian>>>>>>>>>>>>>>", err) - return nil, err + return dataPay, err } zhios_pay_utils.FilePutContents("CheckAllCallbackParamsByKuDian", zhios_pay_utils.SerializeStr(dataPay)) return dataPay, nil