激活条件

This commit is contained in:
meixiongfeng 2023-03-29 18:32:47 +08:00
parent 58978bb084
commit 52def5abd2

View File

@ -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
} }