This commit is contained in:
邹宗楠
2022-07-04 14:07:53 +08:00
parent c1abd8c810
commit 32fc1b1193

View File

@@ -51,6 +51,9 @@ func (p *PayHandler) CreatePay(txDB orm.TxOrmer, subAppID string) (err error) {
if p.VendorPayType == tonglianpayapi.PayTypeWxXcx {
param.SubAppID = subAppID
authInfo, err := p.Ctx.GetV2AuthInfo()
globals.SugarLogger.Debug("===================GetAuthType", authInfo.GetAuthType())
globals.SugarLogger.Debug("===================GetAuthTypeID", authInfo.GetAuthTypeID())
globals.SugarLogger.Debug("===================GetAuthID", authInfo.GetAuthID())
// 微信小程序支付
if err == nil && authInfo.GetAuthType() == weixin.AuthTypeMini && authInfo.GetAuthTypeID() == subAppID {
param.Acct = authInfo.GetAuthID()