Pārlūkot izejas kodu

update

tags/v1.2.8
DengBiao pirms 2 gadiem
vecāks
revīzija
9d17f69f38
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +4
    -4
      pay/pay_by_kudian.go

+ 4
- 4
pay/pay_by_kudian.go Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt