Ver código fonte

屏蔽日常登录奖励
屏蔽周排行榜功能

kevin 9 meses atrás
pai
commit
4b35029faf

BIN
mhaya-config/Excel/LogicConfig/lua_排行榜配置表.xlsx


BIN
mhaya-config/Excel/LogicConfig/lua_签到奖励配置表.xlsx


+ 1 - 1
mhaya-config/Excel/TestServer/Data/rankConfig.json

@@ -1,6 +1,6 @@
 [
 		{"ID":1,"Enable":1,"Type":1,"Source":1,"ShowTotal":100,"Reward":null,"IsBot":1,"StartTime":"","EndTime":"","ShowTime":""},
 		{"ID":2,"Enable":1,"Type":1,"Source":2,"ShowTotal":100,"Reward":null,"IsBot":1,"StartTime":"","EndTime":"","ShowTime":""},
-		{"ID":3,"Enable":1,"Type":2,"Source":2,"ShowTotal":1000,"Reward":[{"itemBaseType":4,"itemID":3,"amount":500000000000}],"IsBot":1,"StartTime":"","EndTime":"","ShowTime":""},
+		{"ID":3,"Enable":0,"Type":2,"Source":2,"ShowTotal":1000,"Reward":[{"itemBaseType":4,"itemID":3,"amount":500000000000}],"IsBot":1,"StartTime":"","EndTime":"","ShowTime":""},
 		{"ID":4,"Enable":1,"Type":1,"Source":3,"ShowTotal":100,"Reward":null,"IsBot":1,"StartTime":"","EndTime":"","ShowTime":""}	
 ]

+ 7 - 7
mhaya-config/Excel/TestServer/Data/weeklySignInConfig.json

@@ -1,9 +1,9 @@
 [
-		{"ID":0,"Reward":[{"itemBaseType":1,"itemID":1,"amount":30}]},
-		{"ID":1,"Reward":[{"itemBaseType":1,"itemID":5,"amount":15000}]},
-		{"ID":2,"Reward":[{"itemBaseType":2,"itemID":6,"amount":10}]},
-		{"ID":3,"Reward":[{"itemBaseType":1,"itemID":5,"amount":20000}]},
-		{"ID":4,"Reward":[{"itemBaseType":1,"itemID":1,"amount":100}]},
-		{"ID":5,"Reward":[{"itemBaseType":1,"itemID":5,"amount":50000}]},
-		{"ID":6,"Reward":[{"itemBaseType":2,"itemID":6,"amount":20},{"itemBaseType":1,"itemID":5,"amount":50000}]}	
+		{"ID":0,"Reward":null},
+		{"ID":1,"Reward":null},
+		{"ID":2,"Reward":null},
+		{"ID":3,"Reward":null},
+		{"ID":4,"Reward":null},
+		{"ID":5,"Reward":null},
+		{"ID":6,"Reward":null}	
 ]

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/ChannelConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type ChannelConfig struct {
 	maps map[int]*ChannelConfigRow
 }
@@ -17,10 +18,12 @@ type ChannelConfigRow struct {
 	Enable int    // 是否开启(0否1是)
 }
 
+
 func (p *ChannelConfig) Name() string {
 	return "ChannelConfig"
 }
 
+
 func (p *ChannelConfig) Init() {
 	p.maps = make(map[int]*ChannelConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *ChannelConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/PlatformConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type PlatformConfig struct {
 	maps map[int]*PlatformConfigRow
 }
@@ -17,10 +18,12 @@ type PlatformConfigRow struct {
 	Enable int    // 是否开启(0否1是)
 }
 
+
 func (p *PlatformConfig) Name() string {
 	return "PlatformConfig"
 }
 
+
 func (p *PlatformConfig) Init() {
 	p.maps = make(map[int]*PlatformConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *PlatformConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/RuleConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type RuleConfig struct {
 	maps map[int]*RuleConfigRow
 }
@@ -17,10 +18,12 @@ type RuleConfigRow struct {
 	MaxTime int // 过期时间(按天)
 }
 
+
 func (p *RuleConfig) Name() string {
 	return "RuleConfig"
 }
 
+
 func (p *RuleConfig) Init() {
 	p.maps = make(map[int]*RuleConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *RuleConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 22 - 21
mhaya-config/Excel/TestServer/Parser/TypeDefine.go

@@ -23,9 +23,9 @@ const (
 type EnumRelationShip int8
 
 const (
-	Friends EnumRelationShip = 0 //
-	Enemy   EnumRelationShip = 1 //
-	Unknown EnumRelationShip = 2 //
+	Friends EnumRelationShip = 0 // 
+	Enemy   EnumRelationShip = 1 // 
+	Unknown EnumRelationShip = 2 // 
 )
 
 type HonorType int8
@@ -45,13 +45,13 @@ const (
 
 // custom types
 type ABAsset struct {
-	Ab     string //
-	Prefab string //
+	Ab     string // 
+	Prefab string // 
 }
 
 type AreaDoorData struct {
 	Width  float32 // 存储一个建造区域里门的位置、宽、高信息
-	Height float32 //
+	Height float32 // 
 }
 
 type ItemDiscountWeight struct {
@@ -74,7 +74,7 @@ type ItemRewardWeight struct {
 
 type RangeInt32 struct {
 	Min int // 描述一个值的范围
-	Max int //
+	Max int // 
 }
 
 type RectRange struct {
@@ -83,9 +83,9 @@ type RectRange struct {
 }
 
 type RoleConfig struct {
-	Names []string //
-	Model ABAsset  //
-	Icon  ABAsset  //
+	Names []string // 
+	Model ABAsset  // 
+	Icon  ABAsset  // 
 }
 
 type SdkParam struct {
@@ -106,21 +106,21 @@ type StoreItemWeight struct {
 }
 
 type TileArea struct {
-	Rect TileAreaRange //
-	Add  []TilePos     //
-	Sub  []TilePos     //
+	Rect TileAreaRange // 
+	Add  []TilePos     // 
+	Sub  []TilePos     // 
 }
 
 type TileAreaRange struct {
-	XMin int //
-	XMax int //
-	YMin int //
-	YMax int //
+	XMin int // 
+	XMax int // 
+	YMin int // 
+	YMax int // 
 }
 
 type TilePos struct {
-	X int //
-	Y int //
+	X int // 
+	Y int // 
 }
 
 type UnlockCondition struct {
@@ -130,10 +130,11 @@ type UnlockCondition struct {
 
 type ValueRange struct {
 	Key       string     // 描述一个key对应value的范围
-	VaueRange RangeInt32 //
+	VaueRange RangeInt32 // 
 }
 
 type Vector2 struct {
 	X int // 存储一个二维空间的坐标
-	Y int //
+	Y int // 
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/achieveTaskConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type achieveTaskConfig struct {
 	maps map[int]*achieveTaskConfigRow
 }
@@ -21,10 +22,12 @@ type achieveTaskConfigRow struct {
 	Order     int          // 排序
 }
 
+
 func (p *achieveTaskConfig) Name() string {
 	return "achieveTaskConfig"
 }
 
+
 func (p *achieveTaskConfig) Init() {
 	p.maps = make(map[int]*achieveTaskConfigRow)
 }
@@ -64,3 +67,4 @@ func (p *achieveTaskConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 30 - 28
mhaya-config/Excel/TestServer/Parser/component.go

@@ -4,42 +4,44 @@ package data
 
 import (
 	mhayaDataConfig "github.com/mhaya/components/data-config"
-	mhayaMapStructure "github.com/mhaya/extend/mapstructure"
 	"github.com/mhaya/game/game_cluster/internal/types"
+	mhayaMapStructure "github.com/mhaya/extend/mapstructure"
 )
 
 var (
-	ChannelConfig      = &ChannelConfig{}
-	PlatformConfig     = &PlatformConfig{}
-	RuleConfig         = &RuleConfig{}
-	achieveTaskConfig  = &achieveTaskConfig{}
-	dailyTaskConfig    = &dailyTaskConfig{}
-	discreteRuleConfig = &discreteRuleConfig{}
-	drawConfig         = &drawConfig{}
-	itemConfig         = &itemConfig{}
-	levelConfig        = &levelConfig{}
-	rankConfig         = &rankConfig{}
-	rankRewardConfig   = &rankRewardConfig{}
-	sdkConfig          = &sdkConfig{}
-	weeklySignInConfig = &weeklySignInConfig{}
+	 ChannelConfig = &ChannelConfig{}
+	 PlatformConfig = &PlatformConfig{}
+	 RuleConfig = &RuleConfig{}
+	 achieveTaskConfig = &achieveTaskConfig{}
+	 dailyTaskConfig = &dailyTaskConfig{}
+	 discreteRuleConfig = &discreteRuleConfig{}
+	 drawConfig = &drawConfig{}
+	 itemConfig = &itemConfig{}
+	 levelConfig = &levelConfig{}
+	 rankConfig = &rankConfig{}
+	 rankRewardConfig = &rankRewardConfig{}
+	 sdkConfig = &sdkConfig{}
+	 weeklySignInConfig = &weeklySignInConfig{}
 )
 
+
 func New() *mhayaDataConfig.Component {
 	dataConfig := mhayaDataConfig.New()
 	dataConfig.Register(
-		ChannelConfig,
-		PlatformConfig,
-		RuleConfig,
-		achieveTaskConfig,
-		dailyTaskConfig,
-		discreteRuleConfig,
-		drawConfig,
-		itemConfig,
-		levelConfig,
-		rankConfig,
-		rankRewardConfig,
-		sdkConfig,
-		weeklySignInConfig,
+	 ChannelConfig,
+	 PlatformConfig,
+	 RuleConfig,
+	 achieveTaskConfig,
+	 dailyTaskConfig,
+	 discreteRuleConfig,
+	 drawConfig,
+	 itemConfig,
+	 levelConfig,
+	 rankConfig,
+	 rankRewardConfig,
+	 sdkConfig,
+	 weeklySignInConfig,
+	
 	)
 	return dataConfig
 }
@@ -51,4 +53,4 @@ func DecodeData(input interface{}, output interface{}) error {
 		"json",
 		types.GetDecodeHooks(),
 	)
-}
+}

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/dailyTaskConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type dailyTaskConfig struct {
 	maps map[int]*dailyTaskConfigRow
 }
@@ -19,10 +20,12 @@ type dailyTaskConfigRow struct {
 	Reward    []ItemReward // 奖励
 }
 
+
 func (p *dailyTaskConfig) Name() string {
 	return "dailyTaskConfig"
 }
 
+
 func (p *dailyTaskConfig) Init() {
 	p.maps = make(map[int]*dailyTaskConfigRow)
 }
@@ -62,3 +65,4 @@ func (p *dailyTaskConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/discreteRuleConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type discreteRuleConfig struct {
 	maps map[int]*discreteRuleConfigRow
 }
@@ -17,10 +18,12 @@ type discreteRuleConfigRow struct {
 	Condition string       // 条件
 }
 
+
 func (p *discreteRuleConfig) Name() string {
 	return "discreteRuleConfig"
 }
 
+
 func (p *discreteRuleConfig) Init() {
 	p.maps = make(map[int]*discreteRuleConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *discreteRuleConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/drawConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type drawConfig struct {
 	maps map[int]*drawConfigRow
 }
@@ -23,10 +24,12 @@ type drawConfigRow struct {
 	PersonTotalCondition int          // 个人最多中奖次数条件
 }
 
+
 func (p *drawConfig) Name() string {
 	return "drawConfig"
 }
 
+
 func (p *drawConfig) Init() {
 	p.maps = make(map[int]*drawConfigRow)
 }
@@ -66,3 +69,4 @@ func (p *drawConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/itemConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type itemConfig struct {
 	maps map[int]*itemConfigRow
 }
@@ -17,10 +18,12 @@ type itemConfigRow struct {
 	ItemKey string // 键名
 }
 
+
 func (p *itemConfig) Name() string {
 	return "itemConfig"
 }
 
+
 func (p *itemConfig) Init() {
 	p.maps = make(map[int]*itemConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *itemConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/levelConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type levelConfig struct {
 	maps map[int]*levelConfigRow
 }
@@ -23,10 +24,12 @@ type levelConfigRow struct {
 	Rule4     int // 规则4豹子111/666
 }
 
+
 func (p *levelConfig) Name() string {
 	return "levelConfig"
 }
 
+
 func (p *levelConfig) Init() {
 	p.maps = make(map[int]*levelConfigRow)
 }
@@ -66,3 +69,4 @@ func (p *levelConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/rankConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type rankConfig struct {
 	maps map[int]*rankConfigRow
 }
@@ -24,10 +25,12 @@ type rankConfigRow struct {
 	ShowTime  string       // 展示时间(如2024-01-01 00:00:00)
 }
 
+
 func (p *rankConfig) Name() string {
 	return "rankConfig"
 }
 
+
 func (p *rankConfig) Init() {
 	p.maps = make(map[int]*rankConfigRow)
 }
@@ -67,3 +70,4 @@ func (p *rankConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/rankRewardConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type rankRewardConfig struct {
 	maps map[int]*rankRewardConfigRow
 }
@@ -18,10 +19,12 @@ type rankRewardConfigRow struct {
 	Reward []ItemReward // 奖励
 }
 
+
 func (p *rankRewardConfig) Name() string {
 	return "rankRewardConfig"
 }
 
+
 func (p *rankRewardConfig) Init() {
 	p.maps = make(map[int]*rankRewardConfigRow)
 }
@@ -61,3 +64,4 @@ func (p *rankRewardConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/sdkConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type sdkConfig struct {
 	maps map[int]*sdkConfigRow
 }
@@ -19,10 +20,12 @@ type sdkConfigRow struct {
 	Desc         string   // 描述信息
 }
 
+
 func (p *sdkConfig) Name() string {
 	return "sdkConfig"
 }
 
+
 func (p *sdkConfig) Init() {
 	p.maps = make(map[int]*sdkConfigRow)
 }
@@ -62,3 +65,4 @@ func (p *sdkConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/weeklySignInConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type weeklySignInConfig struct {
 	maps map[int]*weeklySignInConfigRow
 }
@@ -16,10 +17,12 @@ type weeklySignInConfigRow struct {
 	Reward []ItemReward // 奖励
 }
 
+
 func (p *weeklySignInConfig) Name() string {
 	return "weeklySignInConfig"
 }
 
+
 func (p *weeklySignInConfig) Init() {
 	p.maps = make(map[int]*weeklySignInConfigRow)
 }
@@ -59,3 +62,4 @@ func (p *weeklySignInConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+