ios:审核服判断逻辑

This commit is contained in:
luying
2022-07-30 18:36:49 +08:00
parent 5e5b052aa0
commit f105c79837
9 changed files with 77 additions and 6 deletions
+7
View File
@@ -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);