Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_course_order
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
tamp_course_order
Commits
a42bb4d3
Commit
a42bb4d3
authored
Nov 30, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付接口免验证
parent
7241d682
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
558 additions
and
11 deletions
+558
-11
engine.py
app/api/engine.py
+1
-2
errorhandler.py
app/controller/errorhandler.py
+13
-9
tamp_course_order.log
logs/tamp_course_order.log
+544
-0
No files found.
app/api/engine.py
View file @
a42bb4d3
...
@@ -41,8 +41,7 @@ tamp_pay_engine = create_engine(
...
@@ -41,8 +41,7 @@ tamp_pay_engine = create_engine(
port
=
config
[
env
][
'MySQL'
][
'port'
],
port
=
config
[
env
][
'MySQL'
][
'port'
],
user
=
config
[
env
][
'MySQL'
][
'user'
],
user
=
config
[
env
][
'MySQL'
][
'user'
],
password
=
config
[
env
][
'MySQL'
][
'password'
],
password
=
config
[
env
][
'MySQL'
][
'password'
],
charset
=
"utf8"
),
charset
=
"utf8"
)
echo
=
False
)
)
# redis = redis.StrictRedis(
# redis = redis.StrictRedis(
...
...
app/controller/errorhandler.py
View file @
a42bb4d3
...
@@ -66,7 +66,11 @@ def add_errorhandler(app):
...
@@ -66,7 +66,11 @@ def add_errorhandler(app):
token
=
request
.
headers
.
get
(
'tampToken'
,
''
)
token
=
request
.
headers
.
get
(
'tampToken'
,
''
)
# token = 'eyJhbHQiOiJIUzI1NiIsImFsZyI6IkhTMjU2IiwidHlwIjoiSldUIn0.eyJwYXlsb2FkIjoidGFtcC8xOTM3NzkzMDc5NzY5NDE1NjgiLCJpc3MiOiJjYWl4aWFvcXVhbiIsImlhdCI6MTYwNjI5MDYzMH0.WnADEiWd27A8wr2DmOyX1kcs0dWLxpoO-k1yiF0qbBk'
# token = 'eyJhbHQiOiJIUzI1NiIsImFsZyI6IkhTMjU2IiwidHlwIjoiSldUIn0.eyJwYXlsb2FkIjoidGFtcC8xOTM3NzkzMDc5NzY5NDE1NjgiLCJpc3MiOiJjYWl4aWFvcXVhbiIsImlhdCI6MTYwNjI5MDYzMH0.WnADEiWd27A8wr2DmOyX1kcs0dWLxpoO-k1yiF0qbBk'
url
=
config
[
env
][
'token_auth_url'
]
url
=
config
[
env
][
'token_auth_url'
]
print
(
request
.
path
)
start
=
time
.
time
()
start
=
time
.
time
()
if
request
.
path
in
[
'/tamp_order/micro_shop/topUpOrderNotify'
,
'/tamp_order/micro_shop/consumeOrderNotify'
]:
pass
else
:
requests
.
adapters
.
DEFAULT_RETRIES
=
5
# 增加重连次数
requests
.
adapters
.
DEFAULT_RETRIES
=
5
# 增加重连次数
s
=
requests
.
session
()
s
=
requests
.
session
()
s
.
keep_alive
=
False
s
.
keep_alive
=
False
...
...
logs/tamp_course_order.log
View file @
a42bb4d3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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