From 93ecc6b39304e1f4c92a803ebfd8737cc3da5963 Mon Sep 17 00:00:00 2001 From: NorthLan <6995syu@163.com> Date: Sat, 28 May 2022 01:13:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=97=A7=E7=89=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/user_center/rpc/etc/user_center-dev.yaml | 8 ++++++++ app/user_center/rpc/internal/config/config.go | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/user_center/rpc/etc/user_center-dev.yaml b/app/user_center/rpc/etc/user_center-dev.yaml index 76d2106..b24e4d5 100644 --- a/app/user_center/rpc/etc/user_center-dev.yaml +++ b/app/user_center/rpc/etc/user_center-dev.yaml @@ -73,6 +73,14 @@ Integral: GiftRatio: 0.5 ReturnRatio: 0.8 WelfareRatio: 0.3 + # RMB到弹币的转换 + RMBToIntegral: 100 + # 平台礼物到RMB的转换 + GiftToRMB: + bilibili: 0.001 + # 平台免费礼物到弹币的转换 + FreeToIntegral: + bilibili: 0.00025 GiftPackMap: - PackType: starter PackName: 新手礼包 diff --git a/app/user_center/rpc/internal/config/config.go b/app/user_center/rpc/internal/config/config.go index 13b0b6c..45937ee 100644 --- a/app/user_center/rpc/internal/config/config.go +++ b/app/user_center/rpc/internal/config/config.go @@ -77,9 +77,9 @@ type ( } // 弹币 Coin struct { - RMBToCoin float64 // RMB到弹币的转换 - GiftToRMB map[string]float64 // 平台礼物到RMB的转换 - FreeToIntegral map[string]float64 // 平台免费礼物到弹币的转换 + RMBToCoin float64 // RMB到弹币的转换 + GiftToRMB map[string]float64 // 平台礼物到RMB的转换 + FreeToCoin map[string]float64 // 平台免费礼物到弹币的转换 } Integral struct { // CheckIn 签到 @@ -103,6 +103,9 @@ type ( ReturnRatio float64 // 回收积分比例 WelfareRatio float64 // 福利池从奖金扣除比例 } + RMBToIntegral float64 // RMB到弹币的转换 + GiftToRMB map[string]float64 // 平台礼物到RMB的转换 + FreeToIntegral map[string]float64 // 平台免费礼物到弹币的转换 } // GiftPack 礼包配置 GiftPackMap []GiftPack