Browse Source

update

tags/v1.2.8
DengBiao 2 years ago
parent
commit
9d17f69f38
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      pay/pay_by_kudian.go

+ 4
- 4
pay/pay_by_kudian.go View File

@@ -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 dataWx md.KuDianPayCallback
var dataPay md.KuDianPayCallbackResp
if err := c.ShouldBindJSON(&dataWx); err != nil { if err := c.ShouldBindJSON(&dataWx); err != nil {
fmt.Println(">>>>>>>>>CheckAllCallbackParamsByKuDian>>>>>>>>>>>>>>", err) fmt.Println(">>>>>>>>>CheckAllCallbackParamsByKuDian>>>>>>>>>>>>>>", err)
return nil, err
return dataPay, err
} }
var dataPay md.KuDianPayCallbackResp
if err := json.Unmarshal([]byte(dataWx.Result), &dataPay); err != nil { if err := json.Unmarshal([]byte(dataWx.Result), &dataPay); err != nil {
fmt.Println(">>>>>>>>>CheckAllCallbackParamsByKuDian>>>>>>>>>>>>>>", err) fmt.Println(">>>>>>>>>CheckAllCallbackParamsByKuDian>>>>>>>>>>>>>>", err)
return nil, err
return dataPay, err
} }
zhios_pay_utils.FilePutContents("CheckAllCallbackParamsByKuDian", zhios_pay_utils.SerializeStr(dataPay)) zhios_pay_utils.FilePutContents("CheckAllCallbackParamsByKuDian", zhios_pay_utils.SerializeStr(dataPay))
return dataPay, nil return dataPay, nil


Loading…
Cancel
Save