任务:任务去除funcs的判断,直接达成
This commit is contained in:
@@ -12,7 +12,7 @@ import { getAge } from '../pubUtils/timeUtil';
|
||||
import { resResult } from '../pubUtils/util';
|
||||
import { checkTeeanAgerTime } from '../pubUtils/authenticateUtil';
|
||||
import { authenticate } from '../pubUtils/httpUtil';
|
||||
import { checkTask, getCreateUserFuncs } from 'app/pubUtils/taskUtil';
|
||||
import { checkTask } from 'app/pubUtils/taskUtil';
|
||||
|
||||
/**
|
||||
* Test Service
|
||||
@@ -305,10 +305,8 @@ export default class Auth extends Service {
|
||||
|
||||
const role = await RoleModel.createRole(uid, serverId, { roleId, code, roleName: roleId, seqId, lv: DEFAULT_LV, exp: (getExpByLv(DEFAULT_LV - 1) || { sum: 0 }).sum || 0 });
|
||||
if (role) {
|
||||
let funcs = await getCreateUserFuncs(role.funcs, role.lv);
|
||||
|
||||
// 任务
|
||||
await checkTask(roleId, TASK_TYPE.ROLE_LV, role.lv, false, {}, funcs);
|
||||
await checkTask(roleId, TASK_TYPE.ROLE_LV, role.lv, false, {});
|
||||
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS, { roleId: role.roleId });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user