From 15fc9e3212fc85090d976890a37dbaa801455b49 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Thu, 27 Jun 2024 17:23:48 +0800 Subject: [PATCH 1/2] add create order freeze --- app/mix/service/logic/vas.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/mix/service/logic/vas.go b/app/mix/service/logic/vas.go index 3722d782..865743fe 100644 --- a/app/mix/service/logic/vas.go +++ b/app/mix/service/logic/vas.go @@ -108,6 +108,11 @@ func (v *Vas) GetMembershipProductList(ctx *gin.Context, req *vasproto.GetMember } func (v *Vas) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (data *vasproto.CreateOrderData, err error) { + if req.Mid == 241685 { + err = fmt.Errorf("账号已受限,解限请联系客服") + return + } + // 检查退订单次数 var ( et = time.Now().Unix() @@ -1841,7 +1846,6 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t } // 2000元以下直接操作 - //if money <= 200000 || vasproto.IsWithdrawAnyDiasEnable(req.Mid) { alipayCli := alipaycli.GetAlipayClientByAppId(alipaycli.AppIdXinYiDaoLe) // 更改状态 From bbc808e27ac13a7651e23be0e48501f18f1b5f48 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Fri, 28 Jun 2024 14:33:01 +0800 Subject: [PATCH 2/2] fix --- api/proto/vas/proto/vas.go | 1 + app/mix/service/vasservice.go | 1 + 2 files changed, 2 insertions(+) diff --git a/api/proto/vas/proto/vas.go b/api/proto/vas/proto/vas.go index 3dd62c63..9d69931e 100644 --- a/api/proto/vas/proto/vas.go +++ b/api/proto/vas/proto/vas.go @@ -96,6 +96,7 @@ type WithdrawPageReq struct { } type WithdrawPageData struct { + Diamonds int64 `json:"diamonds"` WithdrawDiamonds int64 `json:"withdraw_diamonds"` // 可提现的钻石 Day7TotalDiamonds int64 `json:"day7_total_diamonds"` // 7天前0~24点总收益 Day7TotalWithdrawDiamonds int64 `json:"day7_total_withdraw_diamonds"` // 7天前0~24点已结算总收益 diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index 064bc05b..2e973541 100644 --- a/app/mix/service/vasservice.go +++ b/app/mix/service/vasservice.go @@ -521,6 +521,7 @@ func (s *Service) WithdrawPage(ctx *gin.Context, req *vasproto.WithdrawPageReq) data = new(vasproto.WithdrawPageData) wallet, _ := _DefaultVas.CheckWalletExist(ctx, nil, req.Mid) if wallet != nil { + data.Diamonds = wallet.GetDiamonds() data.WithdrawDiamonds = wallet.GetWithdrawDiamonds() }