图鉴id 查找
This commit is contained in:
parent
50f5108d23
commit
6d50edeb45
@ -69,14 +69,17 @@ func (this *modelAtlas) CheckActivateAtlas(uid string, id string, lv int32, qual
|
|||||||
|
|
||||||
if atlasConf, err = this.module.configure.GetSmithyAtlasConf(conf.AtlasId); err != nil {
|
if atlasConf, err = this.module.configure.GetSmithyAtlasConf(conf.AtlasId); err != nil {
|
||||||
return false
|
return false
|
||||||
|
} else {
|
||||||
|
id = conf.AtlasId
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if list, err = this.module.modelAtlas.getSmithyAtlasList(uid); err != nil {
|
if list, err = this.module.modelAtlas.getSmithyAtlasList(uid); err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if atlasConf.TypeId == 1 { // 装备收藏图鉴信息
|
if atlasConf.TypeId == 1 { // 装备收藏图鉴信息
|
||||||
atlasScore := this.module.configure.GetSmithyAtlasScoreConf(quality, lv)
|
atlasScore := this.module.configure.GetSmithyAtlasScoreConf(lv, quality)
|
||||||
update := make(map[string]interface{}, 0)
|
update := make(map[string]interface{}, 0)
|
||||||
if v, ok := list.Atlas[id]; ok { // 找到相同的
|
if v, ok := list.Atlas[id]; ok { // 找到相同的
|
||||||
if v.Activate { // 已经激活的
|
if v.Activate { // 已经激活的
|
||||||
|
Loading…
Reference in New Issue
Block a user