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