🐞 fix(判空): 根据后台错误日志添加空值判断
This commit is contained in:
@@ -213,6 +213,8 @@ export class EntryHandler {
|
||||
let ip = session.get('ip');
|
||||
|
||||
let role = await Role.findByRoleId(roleId, 'lv');
|
||||
if(!role) return resResult(STATUS.ROLE_NOT_FOUND);
|
||||
|
||||
let apJson = await getAp(roleId, ip, role.lv);
|
||||
return resResult(STATUS.SUCCESS, { apJson });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user