Sfoglia il codice sorgente

update

tags/v1.2.8
DengBiao 2 anni fa
parent
commit
9d17f69f38
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      pay/pay_by_kudian.go

+ 4
- 4
pay/pay_by_kudian.go Vedi 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 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


Caricamento…
Annulla
Salva