mixpay
This commit is contained in:
@@ -99,6 +99,7 @@ func Pay(ctx *jxcontext.Context, orderID string, payType int, vendorPayType, app
|
|||||||
return result, fmt.Errorf("未找到此订单!")
|
return result, fmt.Errorf("未找到此订单!")
|
||||||
}
|
}
|
||||||
payHandler.Order = order
|
payHandler.Order = order
|
||||||
|
globals.SugarLogger.Debug("order.payprice==================", payHandler.Order.PayPrice)
|
||||||
//如果用户没有对应账单信息就给他生成一条
|
//如果用户没有对应账单信息就给他生成一条
|
||||||
txDB, _ := dao.Begin(db)
|
txDB, _ := dao.Begin(db)
|
||||||
defer func() {
|
defer func() {
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
|
|||||||
//充值会员 增加微信支付处理业务
|
//充值会员 增加微信支付处理业务
|
||||||
if (order.OrderType == 2 || order.OrderType == 5) && call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
|
if (order.OrderType == 2 || order.OrderType == 5) && call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
|
||||||
return OnWXPayFinished(order)
|
return OnWXPayFinished(order)
|
||||||
} else if order.OrderType == 3 {
|
} else if order.OrderType == 3 && call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
|
||||||
txdb, _ := dao.Begin(db)
|
txdb, _ := dao.Begin(db)
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user