feat(card_redeem_jd): 更新下单接口的日志记录和订单ID处理

在下单接口中增强了日志记录,添加了银行订单ID的输出,提升了操作的可追溯性。同时,修正了订单插入时使用的ID,确保使用正确的银行订单ID。这些改进有助于提升系统的稳定性和用户体验。
This commit is contained in:
danial
2025-04-24 18:57:37 +08:00
parent 1d24630948
commit 37b88066fc

View File

@@ -27,11 +27,11 @@ func (c *ControllerV1) PlaceOrder(ctx context.Context, req *v1.PlaceOrderReq) (r
return nil, gerror.NewCode(gcode.CodeInvalidRequest, "订单金额错误")
}
glog.Info(ctx, "下单", "merchantOrderId", req.MerchantOrderId, "orderAmount", orderAmount)
glog.Info(ctx, "下单", "merchantOrderId", req.MerchantOrderId, "bankOrderId", order.BankOrderId, "orderAmount", orderAmount)
// 下单
orderInfo, err := service.CardReddemCookie().PlaceOrder(ctx, &model.CardRedeemCookiePlaceOrderInput{
BankOrderId: order.MerchantUid,
BankOrderId: order.BankOrderId,
OrderAmount: orderAmount,
}, nil)
if err != nil {