推送:保存用户个推cid
This commit is contained in:
@@ -4,8 +4,8 @@ export default class AccountController extends Controller {
|
||||
|
||||
public async deviceLogin() {
|
||||
const { ctx } = this;
|
||||
const { token, isGuest, deviceId, platform, pkgName, serverType } = ctx.request.body;
|
||||
ctx.body = await ctx.service.auth.deviceLogin(isGuest, token, deviceId, platform, pkgName, serverType);
|
||||
const { token, isGuest, deviceId, platform, pkgName, serverType, getuiCID } = ctx.request.body;
|
||||
ctx.body = await ctx.service.auth.deviceLogin(isGuest, token, deviceId, platform, pkgName, serverType, getuiCID);
|
||||
}
|
||||
|
||||
public async getSms() {
|
||||
@@ -16,8 +16,8 @@ export default class AccountController extends Controller {
|
||||
|
||||
public async smsLogin() {
|
||||
const { ctx } = this;
|
||||
const { tel, code, platform, pkgName, serverType, deviceId } = ctx.request.body;
|
||||
ctx.body = await ctx.service.auth.smsLogin(tel, deviceId, code, platform, pkgName, serverType);
|
||||
const { tel, code, platform, pkgName, serverType, deviceId, getuiCID } = ctx.request.body;
|
||||
ctx.body = await ctx.service.auth.smsLogin(tel, deviceId, code, platform, pkgName, serverType, getuiCID);
|
||||
}
|
||||
|
||||
public async getSmsCode() {
|
||||
@@ -34,8 +34,8 @@ export default class AccountController extends Controller {
|
||||
|
||||
public async pwLogin() {
|
||||
const { ctx } = this;
|
||||
const { tel, deviceId, password } = ctx.request.body;
|
||||
ctx.body = await ctx.service.auth.pwLogin(tel, deviceId, password);
|
||||
const { tel, deviceId, password, getuiCID } = ctx.request.body;
|
||||
ctx.body = await ctx.service.auth.pwLogin(tel, deviceId, password, getuiCID);
|
||||
}
|
||||
|
||||
public async checkRole() {
|
||||
|
||||
Reference in New Issue
Block a user