This commit is contained in:
suyl
2021-06-09 18:45:48 +08:00
parent 624182a528
commit a04caf8675

View File

@@ -2,7 +2,7 @@ package localjx
import (
"encoding/json"
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/alipay"
"fmt"
"strings"
"time"
@@ -45,9 +45,12 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, payType int,
}
}
if vendorPayType == tonglianpayapi.PayTypeZfbApp {
if authInfo, err := ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == alipay.AuthType {
if authInfo, err := ctx.GetV2AuthInfo(); err == nil {
param.Acct = authInfo.GetAuthID()
}
if param.Acct == "" {
return nil, fmt.Errorf("未找到用户的认证ID")
}
}
if vendorPayType == tonglianpayapi.PayTypeH5 {
param2 := &tonglianpayapi.CreateH5UnitorderOrderParam{