web-server 注册、登录、获取服务器列表;game-server token 校验

This commit is contained in:
liangtongchuan
2020-08-19 14:40:11 +08:00
parent 0458817b51
commit 940879016f
32 changed files with 1144 additions and 38 deletions
+8 -2
View File
@@ -3,7 +3,13 @@ import { Controller } from 'egg';
export default class AccountController extends Controller {
public async getSms() {
const { ctx } = this;
console.log(ctx.request.body);
ctx.body = await ctx.service.turboCore.getSms(ctx.request.body.telNo);
const { tel } = ctx.request.body;
ctx.body = await ctx.service.auth.getSms(tel);
}
public async smsLogin() {
const { ctx } = this;
const { tel, code, platform, pkgName, serverType } = ctx.request.body;
ctx.body = await ctx.service.auth.smsLogin(tel, code, platform, pkgName, serverType);
}
}