激活条件
This commit is contained in:
parent
58978bb084
commit
52def5abd2
@ -33,7 +33,7 @@ func (this *apiComp) ActivateAtlas(session comm.IUserSession, req *pb.GourmetAct
|
|||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if v, ok := _gourmet.Atlas[req.Cid]; ok && v == -1 {
|
if v, ok := _gourmet.Atlas[req.Cid]; !ok || v != -1 {
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user