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

refactor(common): 统一Redis连接方式并优化代码结构

- 将 g.Redis("cool").Conn(ctx) 统一改为 Redis.Conn(ctx) 的调用方式
- 在coolconfig中添加ServerList.GetID()方法用于生成服务器唯一标识
- 引入gconv包用于类型转换操作

feat(rpc): 完善ListenFight函数实现集群消息监听

- 新增ListenFight函数,完全对齐ListenFunc
This commit is contained in:
昔念
2026-03-20 04:58:23 +08:00
parent 5657f1e673
commit 90b62b44e4
13 changed files with 119 additions and 60 deletions

View File

@@ -37,7 +37,7 @@ func (c *PVPController) Get(ctx context.Context, req *GetPVPReq) (res *cool.Base
)
alltitile := service.NewPVPService(uint32(admin.UserId)).Get(uint32(admin.UserId))
res.Data = alltitile
res.Data = alltitile.RankInfo
return
}