Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
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
xianyang
financial-system
Commits
bfe3534a
Commit
bfe3534a
authored
Aug 24, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化main
parent
1f8fe5d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
crud.py
app/api/statement/crud.py
+1
-1
main.py
main.py
+1
-1
No files found.
app/api/statement/crud.py
View file @
bfe3534a
...
...
@@ -160,7 +160,7 @@ class RechargeStatement(object):
x
[
'paychannel'
]
=
pay_dict
.
get
(
y
[
'paychannel'
],
y
[
'paychannel'
])
x
[
'sid'
]
=
y
[
'sid'
]
else
:
x
[
'nick_name'
]
=
nick_dict
[
x
[
'uuid'
]]
x
[
'nick_name'
]
=
nick_dict
.
get
(
x
[
'uuid'
])
if
nick_dict
.
get
(
x
[
'uuid'
])
else
""
x
[
'status'
]
=
1
Logger
()
.
logger
.
info
(
f
"拼接的数据:{query_data[0]}"
)
return
query_data
...
...
main.py
View file @
bfe3534a
...
...
@@ -31,7 +31,7 @@ async def add_process_time_header(request: Request, call_next):
try
:
response
=
await
call_next
(
request
)
except
:
re
sponse
=
add_process_time_header
(
request
,
call_next
)
re
turn
""
process_time
=
time
.
time
()
-
start_time
response
.
headers
[
"X-Process-Time"
]
=
str
(
process_time
)
url_list
=
[
'/api/users/imgCode'
,
'/api/users/login'
,
'/api/users/goodleCode'
,
'/api/users/googleLogin'
]
...
...
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