普通菜不入图鉴
This commit is contained in:
parent
500202dfe7
commit
5711dd24ff
@ -83,7 +83,11 @@ func (this *apiComp) CreateFood(session comm.IUserSession, req *pb.GourmetCreate
|
|||||||
rst, _ := this.module.modelAtlas.getGourmetAtlasList(session.GetUserId()) // 校验是否首次获得
|
rst, _ := this.module.modelAtlas.getGourmetAtlasList(session.GetUserId()) // 校验是否首次获得
|
||||||
if _, ok := rst.Atlas[curFood]; !ok {
|
if _, ok := rst.Atlas[curFood]; !ok {
|
||||||
bFirst = true
|
bFirst = true
|
||||||
rst.Atlas[curFood] = -1
|
if conf.Type == -1 {
|
||||||
|
rst.Atlas[curFood] = 1
|
||||||
|
} else {
|
||||||
|
rst.Atlas[curFood] = -1
|
||||||
|
}
|
||||||
if err := this.module.modelAtlas.Change(session.GetUserId(), map[string]interface{}{
|
if err := this.module.modelAtlas.Change(session.GetUserId(), map[string]interface{}{
|
||||||
"atlas": rst.Atlas,
|
"atlas": rst.Atlas,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user