refactor(service): 统一服务实例调用方式

将多个模块中手动创建服务实例的方式替换为全局单例模式,
包括 PetFusionService、PetFusionMaterialService 和 EffectService。
同时修改了相关调用代码以适配新的服务引用方式。

此外,重构了 talk 模块的数据结构与逻辑实现,
优化了挖矿次数检查及更新机制。
```
This commit is contained in:
2025-12-08 19:50:54 +08:00
parent 0acf01cd6b
commit 1436cc0117
8 changed files with 54 additions and 17 deletions

View File

@@ -92,7 +92,7 @@ func (h Controller) PlayerFightBoss(data *fight.ChallengeBossInboundInfo, c *pla
// eff := xmlres.EffectMAP[int(idx)]
// args := strings.Split(eff.Args, " ")
EID, args := service.NewEffectService().Args(uint32(idx))
EID, args := service.Effects.Args(uint32(idx))
mo.EffectInfo = append(mo.EffectInfo, model.PetEffectInfo{
Idx: idx,
EID: gconv.Uint16(EID),