通联宝退款测试

This commit is contained in:
苏尹岚
2020-02-28 11:02:53 +08:00
parent 12680eb18d
commit 9821123c08

View File

@@ -587,7 +587,9 @@ func CancelOrder(ctx *jxcontext.Context, order *model.GoodsOrder, reason string)
db := dao.GetDB()
payList, err2 := dao.GetOrderPayList(db, order.VendorOrderID, jxutils.GetPossibleVendorIDFromVendorOrderID(order.VendorOrderID))
if err = err2; err == nil {
globals.SugarLogger.Debugf("CancelOrderTL1, [%v]", payList)
for _, orderPay := range payList {
globals.SugarLogger.Debugf("CancelOrderTL2, [%v]", *orderPay)
if orderPay.Status == model.PayStatusYes {
// refundID := utils.Int64ToStr(GenRefundID(order))
refundID := order.VendorOrderID