You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
2.7 KiB
YAML

Name: usercenter.rpc
ListenOn: 127.0.0.1:40001
Timeout: 5000
Etcd:
Hosts:
- 127.0.0.1:2379
Key: usercenter.rpc.dev
Timeout: 5000 # default is 2000
NonBlock: true
Log:
Mode: console
KeepDays: 7
Level: info
DB:
#DataSource: root:root@tcp(192.168.1.100:3306)/dmgame?charset=utf8mb4&loc=Asia%2FShanghai&parseTime=true
DataSource: root:root@tcp(127.0.0.1:3306)/dmgame?charset=utf8mb4&loc=Asia%2FShanghai&parseTime=true
Kafka:
UserNotify:
Addr: [ "127.0.0.1:9093" ]
Topic: "notify-user-dev"
RankUpdate:
Addr: [ "127.0.0.1:9093" ]
Topic: "rank-update-dev"
RewardPool:
Addr: [ "127.0.0.1:9093" ]
Topic: "rewardPool-dev"
UserRetriever:
Enabled: false
UpdateDuration: 720 # 720 hours = 30 Day = 1 Month
Cron:
PlatformUser: "0 0/5 * * * ?" # 每隔5分钟执行一次
Nobility: "0 0/10 * * * ?" # 每隔10分钟执行一次
NobilityPlatforms: [ "bilibili" ] # 需要获取贵族的平台列表
Bilibili:
RoomId: 8722013
Mid: 6704420
RoomShortInfoApi: https://api.live.bilibili.com/room/v1/Room/room_init
TopListApi: https://api.live.bilibili.com/guard/topList
Rank:
Enabled: true
Cron:
Update: "@every 10s" # 10s一次
Persistence: "@every 10m" # 10min一次
GiftCollector:
Enabled: false
Platforms: [ "bilibili" ]
Cron:
CollectGift: "0 0 0/6 * * ?" # 每隔6小时执行一次
Coin:
# RMB到弹币的转换
RMBToCoin: 100
# 平台礼物到RMB的转换
GiftToRMB:
bilibili: 0.001
# 平台免费礼物到弹币的转换
FreeToCoin:
bilibili: 0.00025
Integral:
# 签到积分配置
CheckIn:
# 签到积分 一周 0(周日) 1 2 3 4 5 6
Points: [ 15000,3000,3500,5000,6500,8000,10000 ]
Critical: 0.15 # 签到积分暴击率
CriticalRadio: [ 1.3, 1.5, 1.8, 2.0, 2.0, 3.0 ] # 暴击倍率
BattleReport:
GeneralIntegral: 1000 # 名将积分
WinRadio: 0.02 # 伤害量 1/50
LostRadio: 0.008 # 伤害量 1/120
RewardPool:
InitReward: 0
Ratio: 0.7
BattleRatio: 0.75
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: 新手礼包
Condition:
UserLimit: 1
UserResetType: unset
StartTime: "2022-05-21 09:00:00"
EndTime: "2022-05-21 09:00:00"
Content:
Integral: 50000
- PackType: subsistence
PackName: 低保
Condition:
UserLimit: 3
UserResetType: daily
StartTime: "2022-05-21 09:00:00"
EndTime: "2022-05-21 09:00:00"
Content:
Integrals: [ 10000, 8000, 4000 ]