This commit is contained in:
邹宗楠
2022-05-26 10:28:08 +08:00
parent dd452827dd
commit 76d4a78837

View File

@@ -42,6 +42,12 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, payType int,
if vendorPayType == tonglianpayapi.PayTypeWxXcx {
param.SubAppID = subAppID
authInfo, err := ctx.GetV2AuthInfo()
globals.SugarLogger.Debug("11111111111111111111",authInfo.GetAuthType(), err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthType() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID )
globals.SugarLogger.Debug("11111111111111111111",err)
globals.SugarLogger.Debug("11111111111111111111",authInfo.GetAuthTypeID())
globals.SugarLogger.Debug("11111111111111111111",subAppID)
globals.SugarLogger.Debug("11111111111111111111",authInfo.GetAuthID())
if err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthType() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID {
param.Acct = authInfo.GetAuthID()
}