1
This commit is contained in:
@@ -3,6 +3,7 @@ package localjx
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/douyin"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -40,7 +41,8 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, payType int,
|
||||
}
|
||||
if vendorPayType == tonglianpayapi.PayTypeWxXcx {
|
||||
param.SubAppID = subAppID
|
||||
if authInfo, err := ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == weixin.AuthTypeMini && authInfo.GetAuthTypeID() == subAppID {
|
||||
authInfo, err := ctx.GetV2AuthInfo()
|
||||
if err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthID() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID {
|
||||
param.Acct = authInfo.GetAuthID()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user