diff --git a/business/jxstore/financial/financial.go b/business/jxstore/financial/financial.go index ef21b4654..524163e9d 100644 --- a/business/jxstore/financial/financial.go +++ b/business/jxstore/financial/financial.go @@ -18,7 +18,6 @@ import ( "git.rosy.net.cn/jx-callback/business/model/dao" "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" - "github.com/astaxie/beego" ) const ( @@ -67,10 +66,6 @@ func (p *PayHandler) CreatePay() (err error) { TimeStart: wxpayapi.Time2PayTime(time.Now()), // ProfitSharing: wxpayapi.OptYes, } - if p.Order.Way == "weixinmini" { - param.SubMchID = beego.AppConfig.String("wxpayAppMchID") - // param.SubAppID = beego.AppConfig.String("wxpayAppID2") - } authBinds, err := dao.GetUserBindAuthInfo(dao.GetDB(), p.Ctx.GetUserID(), model.AuthBindTypeAuth, []string{p.Order.Way}, "", "", "") if err != nil { return err diff --git a/globals/api/api.go b/globals/api/api.go index 2b086cc22..a69d8a274 100644 --- a/globals/api/api.go +++ b/globals/api/api.go @@ -226,7 +226,7 @@ func Init() { keyPEMBlock, _ := ioutil.ReadFile("conf/apiclient_key.pem") WxpayAPI = wxpayapi.NewWithCertificate(beego.AppConfig.String("wxpayAppID1"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID"), certPEMBlock, keyPEMBlock) - WxpayAPI2 = wxpayapi.NewWithCertificate(beego.AppConfig.String("wxpayAppID3"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID2"), + WxpayAPI2 = wxpayapi.NewWithCertificate(beego.AppConfig.String("wxpayAppID2"), beego.AppConfig.String("wxpayAppKey"), beego.AppConfig.String("wxpayAppMchID"), certPEMBlock, keyPEMBlock) if globals.TLPayNotifyURL != "" {