|
@@ -60,7 +60,7 @@ class UserService extends CrudService {
|
|
|
user.is_del = data.is_del;
|
|
|
user.role = data.role;
|
|
|
user.token = data.token;
|
|
|
-
|
|
|
+ user.columnid = data.columnid;
|
|
|
return await user.save();
|
|
|
}
|
|
|
|
|
@@ -84,11 +84,11 @@ class UserService extends CrudService {
|
|
|
}
|
|
|
|
|
|
// 创建登录Token
|
|
|
- async createJwt({ id, name, phone, is_qy, img_path, email, resume, major, office_phone, profession, role, status }) {
|
|
|
+ async createJwt({ id, name, phone, is_qy, img_path, email, resume, major, office_phone, profession, role, status, columnid }) {
|
|
|
const { secret, expiresIn = '1d', issuer } = this.config.jwt;
|
|
|
const subject = phone;
|
|
|
// const _userid = id;
|
|
|
- const res = { name, phone, is_qy, id, img_path, email, resume, major, office_phone, profession, role, status };
|
|
|
+ const res = { name, phone, is_qy, id, img_path, email, resume, major, office_phone, profession, role, status, columnid };
|
|
|
const token = await jwt.sign(res, secret, { expiresIn, issuer, subject });
|
|
|
return token;
|
|
|
}
|