feat(pet): 宠物系统重构和功能增强 - 修复战斗boss中effect ID索引错误问题 - 实现宠物仓库和背包管理功能 - 添加宠物列表排序保存功能 - 重构宠物备份列表同步逻辑 - 优化宠物释放和获取逻辑 - 添加宠物背包仓库切换功能 - 修复地图模型广播信息结构问题 - 调整宠物特效数据库查询逻辑 ```
This commit is contained in:
@@ -10,7 +10,7 @@ type EffectService struct {
|
||||
}
|
||||
|
||||
func (s *EffectService) Args(id []uint32) []model.PlayerPetSpecialEffect {
|
||||
m := dbm_notenable(s.Model).WhereIn("se_idx", id)
|
||||
m := dbm_notenable(s.Model).WhereIn("id", id)
|
||||
var tt []model.PlayerPetSpecialEffect
|
||||
m.Scan(&tt)
|
||||
|
||||
@@ -21,8 +21,8 @@ func NewEffectService() *EffectService {
|
||||
return &EffectService{
|
||||
&cool.Service{
|
||||
|
||||
Model: model.NewPlayerPetSpecialEffect(),
|
||||
UniqueKey: map[string]string{"idx_se_idx": "索引不能重复"},
|
||||
Model: model.NewPlayerPetSpecialEffect(),
|
||||
|
||||
PageQueryOp: &cool.QueryOp{
|
||||
KeyWordField: []string{"desc"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user