读取配置 删除不用的代码

This commit is contained in:
meixiongfeng 2022-11-23 12:27:01 +08:00
parent 649245fb5d
commit 4148c1ed26
4 changed files with 5 additions and 18 deletions

View File

@ -372,8 +372,8 @@ const (
Rtype11 TaskType = 11 //赠送X次友情点
Rtype12 TaskType = 12 //使用好友助战英雄xx次
Rtype13 TaskType = 13 //更换X次助战英雄
//Rtype14 TaskType = 14 //累计xx次普通招募
//Rtype15 TaskType = 15 //累计xx次阵营招募
Rtype14 TaskType = 14 //累计xx次普通招募
Rtype15 TaskType = 15 //累计xx次阵营招募
Rtype16 TaskType = 16 //招募获得xx品质英雄xx个
Rtype17 TaskType = 17 //普通招募十连获得xx个以上xx星英雄
Rtype18 TaskType = 18 //xx次普通招募

View File

@ -51,7 +51,8 @@ func (this *MCompConfigure) Init(service core.IService, module core.IModule, com
this._sign = make(map[int32]*cfg.GameSignData, 0)
configure.RegisterConfigure(game_drop, cfg.NewGameDrop, this.LoadDropData)
configure.RegisterConfigure(game_sign, cfg.NewGameSign, this.LoadSignData)
_da, err := this.GetItemConfigureData("10009")
fmt.Printf("%v\n", _da)
return
}
func (this *MCompConfigure) LoadConfigure(name string, fn interface{}) (err error) {

View File

@ -56,7 +56,7 @@ func (this *apiComp) UseGift(session comm.IUserSession, req *pb.LibraryUseGiftRe
N: v,
})
conf, err := this.configure.GetItemConfigureData(k)
conf, err := this.module.configure.GetItemConfigureData(k)
if err != nil {
this.module.Errorf("err:%v", err)
return

View File

@ -15,7 +15,6 @@ const (
game_libraryhistory = "game_libraryhistory.json" // 往事id 对应的奖励
game_libraryfavor = "game_libraryfavor.json" // 英雄好感度升级所需的经验
game_librarystory = "game_librarystory.json" // 羁绊id对应剧情奖励
//game_favornum = "game_favornum.json" // 羁绊id对应经验
)
///配置管理基础组件
@ -33,7 +32,6 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
game_libraryhistory: cfg.NewGameLibraryHistory,
game_libraryfavor: cfg.NewGameLibraryFavor,
game_librarystory: cfg.NewGameLibraryStory,
//game_favornum: cfg.NewGameFavorNum,
})
this.fetter = make(map[int64]*cfg.GameLibraryFetterData, 0)
@ -141,15 +139,3 @@ func (this *configureComp) GetLibraryStory(fid int32) (data *cfg.GameLibraryStor
}
return
}
// 获取羁绊英雄经验数据
// func (this *configureComp) GetFavorNum(cid string) (data *cfg.GameFavorNumData) {
// if v, err := this.GetConfigure(game_favornum); err == nil {
// if configure, ok := v.(*cfg.GameFavorNum); ok {
// data = configure.Get(cid)
// }
// } else {
// log.Errorf("GetLibraryStory conf err:%v", err)
// }
// return
// }