diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 1199cbc88..35a876ab3 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -182,7 +182,6 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int, if err != nil { return nil, "获取用户会员账户余额失败", err } - if orderInfo.Status == NotPay { globals.SugarLogger.Debug("进入账单未支付") globals.SugarLogger.Debug("user_bill.balance==================", userBill.AccountBalance) @@ -213,7 +212,6 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int, dao.Rollback(db, txDB) return nil, "更新order状态失败", err } - //todo 后续需增加其他订单类型 //(1)更新快递 订单状态 globals.SugarLogger.Debug("更新UserVendorOrder状态") @@ -241,6 +239,8 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int, if err := q_bida.CreateOrder2QBiDa(userOrder, orderInfo.OrderID); err != nil { return nil, "", err } + } else { + return nil, "order/user_vendor_order更新状态出错", nil } } @@ -260,7 +260,6 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, isChoose, payType int, globals.SugarLogger.Debug("进入混合支付部分") //orderInfo.PayMethod = 5 //混合支付状态 needPay := totalPrice - userBill.AccountBalance //需支付金额 - globals.SugarLogger.Debug("needPay=================", needPay) globals.SugarLogger.Debug("orderInfo.PayPrice=================", orderInfo.PayPrice) globals.SugarLogger.Debug("orderInfo.OrderID=================", orderInfo.OrderID)