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("抱歉,一天只能提现一次!")
|
return errCode, fmt.Errorf("抱歉,一天只能提现一次!")
|
||||||
}
|
}
|
||||||
err = payHandler.CreateRefund()
|
err = payHandler.CreateRefund()
|
||||||
fmt.Println("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerr", err)
|
|
||||||
return errCode, err
|
return errCode, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,6 @@ func (p *PayHandler) CreateRefund() (err error) {
|
|||||||
err = OnCashFinished(p.Order)
|
err = OnCashFinished(p.Order)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerr2", err2)
|
|
||||||
return err2
|
return err2
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/mtmemberapi"
|
"git.rosy.net.cn/baseapi/platformapi/mtmemberapi"
|
||||||
@@ -229,10 +231,11 @@ func Init() {
|
|||||||
}
|
}
|
||||||
// if globals.WxpayNotifyURL != "" {
|
// if globals.WxpayNotifyURL != "" {
|
||||||
// WxpayAPI = wxpayapi.New(beego.AppConfig.String("wxpayAppID"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID"))
|
// WxpayAPI = wxpayapi.New(beego.AppConfig.String("wxpayAppID"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID"))
|
||||||
// certPEMBlock, _ := ioutil.ReadFile("conf/apiclient_cert.pem")
|
certPEMBlock, _ := ioutil.ReadFile("conf/apiclient_cert.pem")
|
||||||
// keyPEMBlock, _ := ioutil.ReadFile("conf/apiclient_key.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"),
|
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 != "" {
|
if globals.TLPayNotifyURL != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user