From a64b40429863e9a44db73e7e4f3910baccdf7265 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Thu, 25 Apr 2024 14:41:36 +0800 Subject: [PATCH] fix --- api/proto/vas/proto/op.go | 1 + app/mix/service/vasservice.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/proto/vas/proto/op.go b/api/proto/vas/proto/op.go index ae246c08..9c8cda35 100644 --- a/api/proto/vas/proto/op.go +++ b/api/proto/vas/proto/op.go @@ -108,6 +108,7 @@ type OpOrderVO struct { OrderStatus int32 `json:"order_status"` OrderStatusDesc string `json:"order_status_desc"` Coins int64 `json:"coins"` + Money int64 `json:"money"` Ct int64 `json:"ct"` ProductName string `json:"product_name"` } diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index 083a3e25..b335f539 100644 --- a/app/mix/service/vasservice.go +++ b/app/mix/service/vasservice.go @@ -633,9 +633,10 @@ func (s *Service) OpOrderList(ctx *gin.Context, req *vasproto.OpOrderListReq) (l OrderStatus: o.GetOrderStatus(), OrderStatusDesc: dbstruct.OrderStatusDescMap[o.GetOrderStatus()], Coins: o.GetCoins(), + Money: o.GetPayAmount(), Ct: o.GetCt(), + ProductName: dbstruct.ProductIdDescMap[o.GetProductId()], } - item.ProductName = dbstruct.ProductIdDescMap[o.GetProductId()] list = append(list, item) } return