From d89375a7cea4c11d0fdfdb924b24a8058f4049c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 17 Nov 2020 10:35:56 +0800 Subject: [PATCH] aa --- business/jxstore/cms/order.go | 1 - business/jxstore/financial/financial.go | 1 - globals/api/api.go | 9 ++++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 5f35ab411..a6b072935 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -115,6 +115,5 @@ func Cash(ctx *jxcontext.Context, orderID string, payType int, vendorPayType str return errCode, fmt.Errorf("抱歉,一天只能提现一次!") } err = payHandler.CreateRefund() - fmt.Println("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerr", err) return errCode, err } diff --git a/business/jxstore/financial/financial.go b/business/jxstore/financial/financial.go index 14956a8d8..e563ba82a 100644 --- a/business/jxstore/financial/financial.go +++ b/business/jxstore/financial/financial.go @@ -159,7 +159,6 @@ func (p *PayHandler) CreateRefund() (err error) { err = OnCashFinished(p.Order) } } else { - fmt.Println("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerr2", err2) return err2 } } else { diff --git a/globals/api/api.go b/globals/api/api.go index fee6212e1..e3df002d9 100644 --- a/globals/api/api.go +++ b/globals/api/api.go @@ -1,6 +1,8 @@ package api import ( + "fmt" + "io/ioutil" "time" "git.rosy.net.cn/baseapi/platformapi/mtmemberapi" @@ -229,10 +231,11 @@ func Init() { } // if globals.WxpayNotifyURL != "" { // WxpayAPI = wxpayapi.New(beego.AppConfig.String("wxpayAppID"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID")) - // certPEMBlock, _ := ioutil.ReadFile("conf/apiclient_cert.pem") - // keyPEMBlock, _ := ioutil.ReadFile("conf/apiclient_key.pem") + certPEMBlock, _ := ioutil.ReadFile("conf/apiclient_cert.pem") + keyPEMBlock, _ := ioutil.ReadFile("conf/apiclient_key.pem") + fmt.Println("tttttttttttttttttttttttttt", certPEMBlock) WxpayAPI = wxpayapi.NewWithCertificate(beego.AppConfig.String("wxpayAppID"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID"), - "conf/apiclient_cert.pem", "conf/apiclient_key.pem") + certPEMBlock, keyPEMBlock) // } if globals.TLPayNotifyURL != "" {