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
1760139e
Commit
1760139e
authored
Nov 30, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
ebb6534f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
366 additions
and
1 deletion
+366
-1
errorhandler.py
app/controller/errorhandler.py
+1
-1
order.py
app/controller/order.py
+1
-0
tamp_course_order.log
logs/tamp_course_order.log
+364
-0
No files found.
app/controller/errorhandler.py
View file @
1760139e
...
...
@@ -73,7 +73,7 @@ def add_errorhandler(app):
requests
.
adapters
.
DEFAULT_RETRIES
=
5
# 增加重连次数
s
=
requests
.
session
()
s
.
keep_alive
=
False
res
=
s
.
get
(
url
+
'?tampToken='
+
token
)
res
=
s
.
get
(
url
+
'?tampToken='
+
token
,
timeout
=
2
)
resp
=
res
.
json
()
if
resp
[
'statusCode'
]
!=
"0000"
:
raise
CustomFlaskErr
(
Errors
.
TOKEN_INVALID
)
...
...
app/controller/order.py
View file @
1760139e
...
...
@@ -159,6 +159,7 @@ class ConsumeOrderNotify(Resource):
def
post
(
self
):
"""."""
res_info
=
request
.
stream
.
read
(
request
.
content_length
or
0
)
.
decode
()
print
(
'消费订单支付成功通知信息'
,
res_info
)
logging
.
info
(
'支付成功通知信息'
,
res_info
)
res
=
order_service
.
alipayWxPayCheck
(
res_info
)
if
res
[
'success'
]:
...
...
logs/tamp_course_order.log
View file @
1760139e
This diff is collapsed.
Click to expand it.
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