Commit 308a52bb by lixinming

no message

parent fb6ead6d
...@@ -37,10 +37,8 @@ export async function login({loginId, pwd}) { ...@@ -37,10 +37,8 @@ export async function login({loginId, pwd}) {
let token = ""; let token = "";
const Now = new Date().valueOf(); const Now = new Date().valueOf();
if (userInfo.isAdmin == STATE. || (userInfo.userRegisterState != USERREGISTERSTATE.驳回修改 && userInfo.isAdmin == STATE.)) { token = generateToken(userInfo.userId);
token = generateToken(userInfo.userId); await updateOneData(TABLEENUM.用户表, {userId:userInfo.userId}, {token, tokenMs:Now, lastLoginMs:Now});
await updateOneData(TABLEENUM.用户表, {userId:userInfo.userId}, {token, tokenMs:Now, lastLoginMs:Now});
}
if (userInfo.memberState >= MEMBERSTATE.冻结 ) { if (userInfo.memberState >= MEMBERSTATE.冻结 ) {
throw new BizError(ERRORENUM.该账号已被冻结); throw new BizError(ERRORENUM.该账号已被冻结);
......
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