明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
jt_backend
Commits
f5510be3
Commit
f5510be3
authored
Dec 09, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cbcc9790
Pipeline
#104375
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
userController.js
controller/userController.js
+1
-1
projectJczt.js
db/model/jt/projectJczt.js
+2
-2
No files found.
controller/userController.js
View file @
f5510be3
...
@@ -313,7 +313,7 @@ async function setUserRole(req, res, next) {
...
@@ -313,7 +313,7 @@ async function setUserRole(req, res, next) {
async
function
logout
(
req
,
res
,
next
)
{
async
function
logout
(
req
,
res
,
next
)
{
try
{
try
{
await
ioRedis
.
del
(
`token:
${
user
.
toke
n
}
`
);
await
ioRedis
.
del
(
`token:
${
req
.
headers
.
authorizatio
n
}
`
);
return
res
.
sendData
({})
return
res
.
sendData
({})
}
catch
(
error
)
{
}
catch
(
error
)
{
next
(
error
);
next
(
error
);
...
...
db/model/jt/projectJczt.js
View file @
f5510be3
...
@@ -56,9 +56,9 @@ const ProjectJczt = sequelize.define('ProjectJczt', {
...
@@ -56,9 +56,9 @@ const ProjectJczt = sequelize.define('ProjectJczt', {
// 同步模型到数据库(创建表)
// 同步模型到数据库(创建表)
ProjectJczt
.
sync
({
ProjectJczt
.
sync
({
//
force: false,
force
:
false
,
// force: true ,//会删除已存在表并重新创建
// force: true ,//会删除已存在表并重新创建
alter
:
true
//
alter: true
})
})
.
then
(()
=>
{
.
then
(()
=>
{
console
.
log
(
'ProjectJczt 表同步成功'
);
console
.
log
(
'ProjectJczt 表同步成功'
);
...
...
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