Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
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
Wallen姚文辉
test_platform
Commits
33525d8c
Commit
33525d8c
authored
Dec 10, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开放制作获批信电子签证无token
parent
070ae88a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mian.py
mian.py
+1
-1
No files found.
mian.py
View file @
33525d8c
...
@@ -17,7 +17,7 @@ class Config(object):
...
@@ -17,7 +17,7 @@ class Config(object):
@
server
.
app
.
before_request
@
server
.
app
.
before_request
def
token
():
def
token
():
token
=
request
.
headers
.
get
(
"token"
)
token
=
request
.
headers
.
get
(
"token"
)
release_path
=
[
"/user/login"
,
"/user/logout"
,
'notoken'
,
'download'
,
'upload'
]
release_path
=
[
"/user/login"
,
"/user/logout"
,
'notoken'
,
'download'
,
'upload'
,
'makesendletter'
,
'makesendvisa'
]
next_
=
False
next_
=
False
for
i
in
release_path
:
for
i
in
release_path
:
if
i
in
request
.
path
:
if
i
in
request
.
path
:
...
...
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