登录:fix 浏览器同设备号不继承游客时间

This commit is contained in:
luying
2021-03-08 16:45:23 +08:00
parent a846258a6a
commit 9773b8d69e
4 changed files with 37 additions and 9 deletions

View File

@@ -10,8 +10,8 @@ export default class AccountController extends Controller {
public async getSms() {
const { ctx } = this;
const { tel } = ctx.request.body;
ctx.body = await ctx.service.auth.getSms(tel);
const { type, tel } = ctx.request.body;
ctx.body = await ctx.service.auth.getSms(type, tel);
}
public async smsLogin() {