1
This commit is contained in:
@@ -42,9 +42,10 @@ 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(),)
|
||||
globals.SugarLogger.Debug("11111111111111111111",authInfo.GetAuthType(), err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthType() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID )
|
||||
if err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthType() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID {
|
||||
param.Acct = authInfo.GetAuthID()
|
||||
globals.SugarLogger.Debug("11111111111111111111",authInfo.GetAuthID())
|
||||
}
|
||||
}
|
||||
if vendorPayType == tonglianpayapi.PayTypeZfbJS || vendorPayType == tonglianpayapi.PayTypeZfbApp {
|
||||
@@ -65,6 +66,10 @@ 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("2222222222222222",err)
|
||||
globals.SugarLogger.Debug("2222222222222222",result)
|
||||
globals.SugarLogger.Debug("2222222222222222",&result)
|
||||
globals.SugarLogger.Debug("2222222222222222",result.PayInfo)
|
||||
if err == nil {
|
||||
var result2 tonglianpayapi.PayInfo
|
||||
json.Unmarshal([]byte(result.PayInfo), &result2)
|
||||
|
||||
Reference in New Issue
Block a user