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
48220f86
Commit
48220f86
authored
Nov 30, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝支付
parent
2bbaee21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
154 additions
and
2 deletions
+154
-2
order.py
app/controller/order.py
+1
-1
order_service.py
app/service/order_service.py
+1
-1
tamp_course_order.log
logs/tamp_course_order.log
+152
-0
No files found.
app/controller/order.py
View file @
48220f86
...
...
@@ -119,8 +119,8 @@ class TopUpOrderNotify(Resource):
def
post
(
self
):
"""."""
res_info
=
request
.
stream
.
read
(
request
.
content_length
or
0
)
.
decode
()
res
=
order_service
.
alipayWxPayCheck
(
res_info
)
print
(
res_info
)
res
=
order_service
.
alipayWxPayCheck
(
res_info
)
if
res
[
'success'
]:
order_service
.
topUpSuccessAction
(
res
[
'order_no'
],
res
[
'transaction_id'
])
resp
=
make_response
(
res
[
'body'
])
...
...
app/service/order_service.py
View file @
48220f86
...
...
@@ -341,7 +341,7 @@ def alipayWxPayCheck(res_info):
for
ss
in
res_info
:
key
,
value
=
ss
.
split
(
'='
)
res
[
key
]
=
value
if
res
[
'code'
]
==
'10000
'
:
if
res
.
get
(
'trade_status'
,
''
)
==
'TRADE_SUCCESS
'
:
success
=
True
transaction_id
=
res
.
get
(
'trade_no'
,
''
)
body
=
'success'
.
encode
()
...
...
logs/tamp_course_order.log
View file @
48220f86
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