refactor(fight): 移除未使用的xmlres导入并优化回血逻辑 移除input包中未使用的xmlres导入,将宠物血量处理逻辑 封装到PetInfo模型中,并添加ModelHP方法来统一处理血量增减 逻辑。 feat(dict): 注释初始化数据相关代码 注释掉字典模块
This commit is contained in:
@@ -120,6 +120,13 @@ func (s *DictInfoService) GetShiny() []int {
|
||||
|
||||
return res.Array("value").Ints()
|
||||
|
||||
}
|
||||
func (s *DictInfoService) SetItemRemark(id int, b string) {
|
||||
//获取精灵的排序作为精灵的数组
|
||||
m := cool.DBM(s.Model)
|
||||
|
||||
m.Where("typeId", 6).Where("value", id).Data("remark", b).Update()
|
||||
|
||||
}
|
||||
|
||||
// ModifyAfter 修改后
|
||||
|
||||
Reference in New Issue
Block a user