上传图鉴修复
This commit is contained in:
parent
ddaa7f2271
commit
79c1134386
@ -75,6 +75,7 @@ func (this *modelAtlas) CheckActivateAtlas(uid string, id string, lv int32, qual
|
|||||||
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 { // 已经激活的
|
||||||
|
if v.Data1.Score < atlasScore {
|
||||||
if v.Data2 == nil {
|
if v.Data2 == nil {
|
||||||
v.Data2 = &pb.ForgeData{
|
v.Data2 = &pb.ForgeData{
|
||||||
ForgeCount: forgeCount,
|
ForgeCount: forgeCount,
|
||||||
@ -92,6 +93,10 @@ func (this *modelAtlas) CheckActivateAtlas(uid string, id string, lv int32, qual
|
|||||||
v.Data2.Time = configure.Now().Unix()
|
v.Data2.Time = configure.Now().Unix()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
v.Data1.ForgeCount = forgeCount
|
||||||
|
}
|
||||||
|
|
||||||
} else { // 没有激活的
|
} else { // 没有激活的
|
||||||
if v.Data1.Score < atlasScore {
|
if v.Data1.Score < atlasScore {
|
||||||
v.Data1.ForgeCount = forgeCount
|
v.Data1.ForgeCount = forgeCount
|
||||||
|
Loading…
Reference in New Issue
Block a user