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 != "" {