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
1f1d54e6
Commit
1f1d54e6
authored
Nov 30, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付成功通知
parent
82e26e1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
order.py
app/controller/order.py
+2
-0
wx_app_pay.py
app/utils/wxpay/wx_app_pay.py
+1
-1
No files found.
app/controller/order.py
View file @
1f1d54e6
...
...
@@ -127,6 +127,7 @@ class TopUpOrderNotify(Resource):
"""."""
res_info
=
request
.
stream
.
read
(
request
.
content_length
or
0
)
.
decode
()
res
=
order_service
.
alipayWxPayCheck
(
res_info
)
print
(
res_info
)
if
res
[
'success'
]:
order_service
.
topUpSuccessAction
(
res
[
'order_no'
],
res
[
'transaction_id'
])
resp
=
make_response
(
res
[
'body'
])
...
...
@@ -157,6 +158,7 @@ class ConsumeOrderNotify(Resource):
def
post
(
self
):
"""."""
res_info
=
request
.
stream
.
read
(
request
.
content_length
or
0
)
.
decode
()
print
(
res_info
)
res
=
order_service
.
alipayWxPayCheck
(
res_info
)
if
res
[
'success'
]:
order_service
.
consumeSucessAction
(
res
[
'order_no'
],
res
[
'transaction_id'
])
...
...
app/utils/wxpay/wx_app_pay.py
View file @
1f1d54e6
...
...
@@ -50,7 +50,7 @@ class WXPay(object):
self
.
sign_type
=
'MD5'
self
.
body
=
body
self
.
out_trade_no
=
out_trade_no
self
.
total_fee
=
int
(
total_fee
*
100
)
self
.
total_fee
=
total_fee
self
.
spbill_create_ip
=
remote_addr
self
.
notify_url
=
notify_url
self
.
trade_type
=
'APP'
...
...
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