起名:添加屏蔽词检测

This commit is contained in:
luying
2021-11-10 19:41:06 +08:00
parent 32fe508625
commit a7f3bcc730
11 changed files with 178 additions and 33 deletions

View File

@@ -24,15 +24,9 @@ export default class SdkController extends Controller {
public async treatGuildName() {
const { ctx } = this;
let promiseFun = () => {
return new Promise(resolve => {
setTimeout(() => {
resolve(ctx.service.utils.resResult(STATUS.SUCCESS, ''));
}, 1000)
})
}
ctx.body = await promiseFun();
const params = ctx.request.body;
console.log(params)
ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, '');
return;
}