feat(player): 添加称号重复检查逻辑 防止玩家重复获得相同称号,提升系统稳定性 fix(config): 修复boss配置相关代码问题 - 新增BossController的GetList接口 - 优化import语句顺序 - 修正PetBaseConfig中Desc字段为Remark字段 - 移除Tower配置中的TaskIds冗余字段 - 完善ShopConfig字段注释内容 ```
This commit is contained in:
@@ -30,3 +30,13 @@ func (s *BossService) Get(id uint32) *model.BossConfig {
|
||||
return item
|
||||
|
||||
}
|
||||
func (s *BossService) GetList(id uint32) []model.BossConfig {
|
||||
|
||||
var ret []model.BossConfig
|
||||
|
||||
// 执行 Raw SQL 并扫描返回值
|
||||
dbm_nocache_noenable(s.Model).
|
||||
Wheref(`map_id @> ARRAY[?]::integer[]`, id).WhereOrf(`map_id @> ARRAY[?]::integer[]`, 0).Scan(&ret)
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user