pay
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -154,5 +155,6 @@ func GetMixPayDetail(orderID string) (mixPayDetail []*MixPayDetail, err error) {
|
||||
sqlParams = append(sqlParams, orderID)
|
||||
err = GetRow(GetDB(), &mixPayDetail, sql, sqlParams)
|
||||
}
|
||||
globals.SugarLogger.Debug("输出mix pay信息", mixPayDetail[0].OrderID)
|
||||
return mixPayDetail, err
|
||||
}
|
||||
|
||||
@@ -289,6 +289,7 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
|
||||
if orderWay.PayMethod == 5 { //混合支付
|
||||
globals.SugarLogger.Debug("回调进入混合支付流程")
|
||||
//余额增加相应金额
|
||||
globals.SugarLogger.Debug("回调输出订单id", orderWay.OrderID)
|
||||
mixPayInfo, err := dao.GetMixPayDetail(orderWay.OrderID)
|
||||
userBill.AccountBalance += mixPayInfo[0].BalancePrice
|
||||
globals.SugarLogger.Debug("回调输出userBill.AccountBalance", userBill.AccountBalance)
|
||||
|
||||
Reference in New Issue
Block a user