add 充值到余额订单
This commit is contained in:
@@ -162,9 +162,13 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int,
|
|||||||
}
|
}
|
||||||
if orderInfo.Status == NotPay {
|
if orderInfo.Status == NotPay {
|
||||||
//需要充值余额支付的方式//todo 后续添加
|
//需要充值余额支付的方式//todo 后续添加
|
||||||
//if orderInfo.OrderType == 6 {
|
if orderInfo.OrderType == 6 {
|
||||||
//
|
WxPayParam, err := Pay(ctx, orderInfo.OrderID, payType, vendorPayType, appID, orderInfo.PayPrice)
|
||||||
//}
|
if err != nil {
|
||||||
|
return nil, "微信支付失败:", err
|
||||||
|
}
|
||||||
|
return WxPayParam, "", err
|
||||||
|
}
|
||||||
// (3)使用余额且 余额大于支付金额
|
// (3)使用余额且 余额大于支付金额
|
||||||
//快递混合支付
|
//快递混合支付
|
||||||
if orderInfo.OrderType == 3 {
|
if orderInfo.OrderType == 3 {
|
||||||
|
|||||||
@@ -349,6 +349,10 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
|
|||||||
if err := dao.UpdateUserBill(order.UserID, order.PayPrice); err != nil {
|
if err := dao.UpdateUserBill(order.UserID, order.PayPrice); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
order.Status = 110
|
||||||
|
if _, err := dao.UpdateEntity(db, order, "Status"); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debugf("onTLpayFinished msg:%s, err:%v", utils.Format4Output(call, true), err)
|
globals.SugarLogger.Debugf("onTLpayFinished msg:%s, err:%v", utils.Format4Output(call, true), err)
|
||||||
|
|||||||
Reference in New Issue
Block a user