refactor(fight): 移除未使用的xmlres导入并优化回血逻辑 移除input包中未使用的xmlres导入,将宠物血量处理逻辑 封装到PetInfo模型中,并添加ModelHP方法来统一处理血量增减 逻辑。 feat(dict): 注释初始化数据相关代码 注释掉字典模块
This commit is contained in:
@@ -3,12 +3,9 @@ package dict
|
||||
import (
|
||||
"blazing/cool"
|
||||
|
||||
_ "blazing/modules/dict/packed"
|
||||
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
|
||||
_ "blazing/modules/dict/controller"
|
||||
"blazing/modules/dict/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -16,7 +13,7 @@ func init() {
|
||||
ctx = gctx.GetInitCtx()
|
||||
)
|
||||
cool.Logger.Debug(ctx, "module dict init start ...")
|
||||
cool.FillInitData(ctx, "dict", &model.DictInfo{}, nil)
|
||||
cool.FillInitData(ctx, "dict", &model.DictType{}, nil)
|
||||
// cool.FillInitData(ctx, "dict", &model.DictInfo{}, nil)
|
||||
// cool.FillInitData(ctx, "dict", &model.DictType{}, nil)
|
||||
cool.Logger.Debug(ctx, "module dict init finished ...")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user