From e1e6b253e268780e7c2f13ac8cadb4a77f7d9c9b Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 22 Jan 2024 15:23:19 +0800 Subject: [PATCH 1/2] by Robin at 20240122; fix --- app/mix/service/logic/vas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/service/logic/vas.go b/app/mix/service/logic/vas.go index adc6bff9..603ce6c4 100644 --- a/app/mix/service/logic/vas.go +++ b/app/mix/service/logic/vas.go @@ -2043,7 +2043,7 @@ func (v *Vas) UnlockMembership(ctx *gin.Context, mid int64, product *dbstruct.Pr OfficialDias = int64(0) ) if inviterMid > 0 { - InviterDias = int64(float64(TotalDias) * 0.05) + InviterDias = int64(float64(TotalDias) * 0.8) } OfficialDias = TotalDias - InviterDias From 9c42b763d83e23e9261dcd895a7b0732b95d8a09 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 22 Jan 2024 17:15:59 +0800 Subject: [PATCH 2/2] by Robin at 20240122 --- api/proto/account/proto/account_vo_api.go | 2 ++ api/proto/account/proto/account_vo_op.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/proto/account/proto/account_vo_api.go b/api/proto/account/proto/account_vo_api.go index 17404811..8ff5c498 100644 --- a/api/proto/account/proto/account_vo_api.go +++ b/api/proto/account/proto/account_vo_api.go @@ -16,6 +16,7 @@ type ApiListVO struct { GoldNum *int64 `json:"gold_num" bson:"gold_num"` // 金币数量 DiamondNum *int64 `json:"diamond_num" bson:"diamond_num"` // 钻石数量 WithdrawDiamondNum *int64 `json:"withdraw_diamond_num" bson:"withdraw_diamond_num"` // 提现钻石数量 + IsAMember *int64 `json:"is_a_member" bson:"is_a_member"` // 是否会员 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 } @@ -45,6 +46,7 @@ func (vo *ApiListVO) CopyAccount(account *dbstruct.Account) *ApiListVO { vo.IsDndModeEnabled = account.IsDndModeEnabled vo.GoldNum = account.GoldNum vo.DiamondNum = account.DiamondNum + vo.IsAMember = account.IsAMember vo.Ct = account.Ct vo.Ut = account.Ut return vo diff --git a/api/proto/account/proto/account_vo_op.go b/api/proto/account/proto/account_vo_op.go index 3e789fbe..fb5bc3ca 100644 --- a/api/proto/account/proto/account_vo_op.go +++ b/api/proto/account/proto/account_vo_op.go @@ -15,6 +15,7 @@ type OpListVO struct { IsDndModeEnabled *int64 `json:"is_dnd_mode_enabled" bson:"is_dnd_mode_enabled"` // 是否开启勿扰模式 GoldNum *int64 `json:"gold_num" bson:"gold_num"` // 金币数量 DiamondNum *int64 `json:"diamond_num" bson:"diamond_num"` // 钻石数量 + IsAMember *int64 `json:"is_a_member" bson:"is_a_member"` // 是否会员 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 } @@ -44,6 +45,7 @@ func (vo *OpListVO) CopyAccount(account *dbstruct.Account) *OpListVO { vo.IsDndModeEnabled = account.IsDndModeEnabled vo.GoldNum = account.GoldNum vo.DiamondNum = account.DiamondNum + vo.IsAMember = account.IsAMember vo.Ct = account.Ct vo.Ut = account.Ut return vo