aa
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -159,7 +159,6 @@ func (p *PayHandler) CreateRefund() (err error) {
|
||||
err = OnCashFinished(p.Order)
|
||||
}
|
||||
} else {
|
||||
fmt.Println("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerr2", err2)
|
||||
return err2
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user