通联宝支付兼容支付宝等
This commit is contained in:
@@ -24,8 +24,12 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp
|
|||||||
Trxamt: int(order.ActualPayPrice),
|
Trxamt: int(order.ActualPayPrice),
|
||||||
NotifyUrl: globals.TLPayNotifyURL,
|
NotifyUrl: globals.TLPayNotifyURL,
|
||||||
Reqsn: order.VendorOrderID,
|
Reqsn: order.VendorOrderID,
|
||||||
|
PayType: vendorPayType,
|
||||||
|
}
|
||||||
|
//暂时做兼容处理
|
||||||
|
if vendorPayType == "JSAPI" {
|
||||||
|
param.PayType = tonglianpayapi.PayTypeWxXcx
|
||||||
}
|
}
|
||||||
|
|
||||||
if authInfo, err := ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == weixin.AuthTypeMini {
|
if authInfo, err := ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == weixin.AuthTypeMini {
|
||||||
param.Acct = authInfo.GetAuthID()
|
param.Acct = authInfo.GetAuthID()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user