Commit a6740c1d by 王昆

ghsb

parent 01ae5613
......@@ -63,10 +63,10 @@ class UserCtl extends CtlBase {
async setLogin(user) {
user.loginsid = "jfs_" + uuidv4();
user.subsid = "sub_" + uuidv4();
if(settings.env == 'dev') {
user.loginsid = "jfs_" + "3cb49932-fa02-44f0-90db-9f06fe02e5c7";
user.subsid = "sub_" + "3cb49932-fa02-44f0-90db-9f06fe02e5c7";
}
// if(settings.env == 'dev') {
// user.loginsid = "jfs_" + "3cb49932-fa02-44f0-90db-9f06fe02e5c7";
// user.subsid = "sub_" + "3cb49932-fa02-44f0-90db-9f06fe02e5c7";
// }
// xggadminsid = "jfs_" + "3cb49932-fa02-44f0-90db-9f06fe02e5c7";
await this.redisClient.setWithEx(user.loginsid, JSON.stringify(user), 60 * 60 * 5);
await this.redisClientTax.setWithEx(user.subsid, (user.nt_user_id || "").toString(), 60 * 60 * 5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment