This commit is contained in:
邹宗楠
2022-05-26 14:31:53 +08:00
parent fbd31c87ce
commit 1b24df751b

View File

@@ -42,7 +42,7 @@ 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 || authInfo.GetAuthTypeID() == "tta6a1d01c399f264201") )
globals.SugarLogger.Debug("11111111111111111111", authInfo.GetAuthType(), err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthType() == douyin.AuthTypeTiktokMini) && (authInfo.GetAuthTypeID() == subAppID || authInfo.GetAuthTypeID() == "tta6a1d01c399f264201"))
globals.SugarLogger.Debug("11111111111111111111", err)
globals.SugarLogger.Debug("11111111111111111111", authInfo.GetAuthTypeID())
globals.SugarLogger.Debug("11111111111111111111", subAppID)
@@ -70,6 +70,8 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, payType int,
err = api.TLpayAPI.CreateH5UnitorderOrder(param2)
} else {
result, err := api.TLpayAPI.CreateUnitorderOrder(param)
globals.SugarLogger.Debug("222222222222222", err)
globals.SugarLogger.Debug("222222222222222", fmt.Sprintf("%+v", result))
if err == nil {
var result2 tonglianpayapi.PayInfo
json.Unmarshal([]byte(result.PayInfo), &result2)