From 35450fed80e1625b16ab146e720d678b4fca48b8 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 27 Jul 2022 15:14:04 +0800 Subject: [PATCH] log --- business/q_bida/q_bida_server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/business/q_bida/q_bida_server.go b/business/q_bida/q_bida_server.go index 039b42e71..a86478bb1 100644 --- a/business/q_bida/q_bida_server.go +++ b/business/q_bida/q_bida_server.go @@ -251,6 +251,8 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd } // 暂时考虑余额支付渠道,加载order表判断支付渠道方式 orderWay, err := dao.GetOrderByID(db, param.OrderNo) + globals.SugarLogger.Debug("============", orderWay.PayPrice) + globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod) if err != nil { return err } @@ -258,8 +260,7 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd //if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil { // return err //} - globals.SugarLogger.Debug("============", orderWay.PayPrice) - globals.SugarLogger.Debug("========= dfedfwfwdsw", orderWay.PayMethod) + if orderWay.PayMethod == 1 { // 余额支付 // 支付方式为余额支付,则需要修改order/userVendorOrder,修改订单状态,给用户账户价钱,生成一个价钱数据 } else if orderWay.PayMethod == 2 { // 微信支付