```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(pet): 宠物系统重构和功能增强

- 修复战斗boss中effect ID索引错误问题
- 实现宠物仓库和背包管理功能
- 添加宠物列表排序保存功能
- 重构宠物备份列表同步逻辑
- 优化宠物释放和获取逻辑
- 添加宠物背包仓库切换功能
- 修复地图模型广播信息结构问题
- 调整宠物特效数据库查询逻辑
```
This commit is contained in:
昔念
2026-04-02 07:49:49 +08:00
parent 3a13bcc99c
commit f810a2ae86
13 changed files with 280 additions and 43 deletions

View File

@@ -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"},
},