ios:审核服判断逻辑
This commit is contained in:
@@ -100,6 +100,13 @@ export default class Game extends Service {
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
public async switchServerReview(id: number, isReview: boolean) {
|
||||
const { ctx } = this;
|
||||
const server = await ServerlistModel.updateByServerId(id, { isReview });
|
||||
if(!server) return ctx.service.utils.resResult(STATUS.WRONG_PARMS);
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
public async getRegionStategy(id: number) {
|
||||
const { ctx } = this;
|
||||
let region = await RegionModel.findRegionById(id);
|
||||
|
||||
Reference in New Issue
Block a user