Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
wenHuaBu_adminServer
Commits
308a52bb
Commit
308a52bb
authored
Apr 11, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fb6ead6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
user.ts
src/biz/member/user.ts
+2
-4
No files found.
src/biz/member/user.ts
View file @
308a52bb
...
...
@@ -37,10 +37,8 @@ export async function login({loginId, pwd}) {
let
token
=
""
;
const
Now
=
new
Date
().
valueOf
();
if
(
userInfo
.
isAdmin
==
STATE
.
是
||
(
userInfo
.
userRegisterState
!=
USERREGISTERSTATE
.
驳回修改
&&
userInfo
.
isAdmin
==
STATE
.
否
))
{
token
=
generateToken
(
userInfo
.
userId
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
:
userInfo
.
userId
},
{
token
,
tokenMs
:
Now
,
lastLoginMs
:
Now
});
}
token
=
generateToken
(
userInfo
.
userId
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
:
userInfo
.
userId
},
{
token
,
tokenMs
:
Now
,
lastLoginMs
:
Now
});
if
(
userInfo
.
memberState
>=
MEMBERSTATE
.
冻结
)
{
throw
new
BizError
(
ERRORENUM
.
该账号已被冻结
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment