```
feat(common): 添加GlowFilter的Level字段 添加了GlowFilter结构体中的Level字段,用于表示等级信息, 对应JSON标签为"level,omitempty" --- fix(utils): 修复concurrent_swiss_map中的panic处理 - 使用goroutine替代线程池来监听通道 - 添加panic恢复机制,当发生panic时记录错误日志 - 确保在异常情况下程序能够
This commit is contained in:
@@ -88,6 +88,8 @@ func (s *DictInfoService) GetData(types string) (data map[uint32]model.DictInfo)
|
||||
return fusions
|
||||
|
||||
}
|
||||
|
||||
// 获取物品的最大数限制
|
||||
func (s *DictInfoService) GetMax(value uint32) (max uint32) {
|
||||
|
||||
m := cool.DBM(s.Model)
|
||||
@@ -105,6 +107,21 @@ func (s *DictInfoService) GetMax(value uint32) (max uint32) {
|
||||
|
||||
}
|
||||
|
||||
// 获取稀有精灵的光环显示
|
||||
func (s *DictInfoService) GetShiny() []int {
|
||||
//获取精灵的排序作为精灵的数组
|
||||
m := cool.DBM(s.Model)
|
||||
|
||||
res, _ := m.Where("typeId", 10).Where("ordernum", 1).Cache(gdb.CacheOption{
|
||||
// Duration: time.Hour,
|
||||
|
||||
Force: false,
|
||||
}).Fields("value").All()
|
||||
|
||||
return res.Array("value").Ints()
|
||||
|
||||
}
|
||||
|
||||
// ModifyAfter 修改后
|
||||
func (s *DictInfoService) ModifyAfter(ctx context.Context, method string, param map[string]interface{}) (err error) {
|
||||
defer s.Service.ModifyAfter(ctx, method, param)
|
||||
|
||||
Reference in New Issue
Block a user