|
@ -61,7 +61,8 @@ async function login(ctx, next) { |
|
|
authorized: true, |
|
|
authorized: true, |
|
|
token: token, |
|
|
token: token, |
|
|
userResources: userRes ? userRes.userResources.map(r => r.resourceId) : [], |
|
|
userResources: userRes ? userRes.userResources.map(r => r.resourceId) : [], |
|
|
type: deptInfo ? deptInfo.type : '' |
|
|
type: deptInfo ? deptInfo.type : '', |
|
|
|
|
|
deptName: deptInfo ? deptInfo.name : '', |
|
|
}); |
|
|
}); |
|
|
await models.UserToken.create({ |
|
|
await models.UserToken.create({ |
|
|
token: token, |
|
|
token: token, |
|
|