✨ feat(37需求): 注销账号

This commit is contained in:
luying
2023-04-18 16:45:39 +08:00
parent 9ac643f6fb
commit 1c18565c8d
7 changed files with 56 additions and 3 deletions
+3 -1
View File
@@ -560,7 +560,9 @@ export default class Sdk extends Service {
let redisClient: RedisClient = this.ctx.app.context.redisClient;
let servers = await redisClient.hgetallAsync(REDIS_KEY.SERVER);
let roles = await RoleModel.findAllByUid(user.uid);
let result = roles.map(role => ({
let result = roles
.filter(role => role.closeTime > 0 && role.closeTime < nowSeconds())
.map(role => ({
id: role.roleId,
name: role.roleName,
level: role.lv.toString(),