Files
bl/modules/config/service/effect.go
昔念 a3244549f3
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
feat(fight_boss): 修复Boss挑战功能中的参数传递和效果处理逻辑

- 修复PlayerFightBoss方法中参数名错误(data -> data1)
- 修正BossId获取路径,使用正确的参数引用
- 重构特效处理逻辑,从循环解析改为批量获取
- 添加宠物闪光效果初始化支持

fix(fight_塔): 修复试炼塔相关战斗逻辑错误

- 修正Boss获取逻辑,从单个对象改为数组切片访问
- 调整塔级Boss获取接口
2026-02-25 21:16:36 +08:00

32 lines
600 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type EffectService struct {
*cool.Service
}
func (s *EffectService) Args(id []uint32) []model.PlayerPetSpecialEffect {
m := dbm_notenable(s.Model).WhereIn("se_idx", id)
var tt []model.PlayerPetSpecialEffect
m.Scan(&tt)
return tt
}
func NewEffectService() *EffectService {
return &EffectService{
&cool.Service{
Model: model.NewPlayerPetSpecialEffect(),
UniqueKey: map[string]string{"idx_se_idx": "索引不能重复"},
PageQueryOp: &cool.QueryOp{
KeyWordField: []string{"desc"},
},
},
}
}