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
b947a441
Commit
b947a441
authored
Nov 30, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付通知2
parent
1e755036
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
393 additions
and
3 deletions
+393
-3
order_service.py
app/service/order_service.py
+5
-3
tamp_course_order.log
logs/tamp_course_order.log
+388
-0
No files found.
app/service/order_service.py
View file @
b947a441
...
@@ -12,7 +12,7 @@ import time
...
@@ -12,7 +12,7 @@ import time
from
sqlalchemy
import
and_
from
sqlalchemy
import
and_
from
sqlalchemy.testing
import
in_
from
sqlalchemy.testing
import
in_
from
app.api.engine
import
TAMP_SQL
,
tamp_pay_engine
,
tamp_user_engine
from
app.api.engine
import
TAMP_SQL
,
tamp_pay_engine
,
tamp_user_engine
,
config
,
env
from
app.config.errors
import
Errors
from
app.config.errors
import
Errors
from
app.controller.errorhandler
import
CustomFlaskErr
from
app.controller.errorhandler
import
CustomFlaskErr
from
app.model.account_balance
import
AccountBalance
from
app.model.account_balance
import
AccountBalance
...
@@ -63,7 +63,8 @@ class TopUpOrderService:
...
@@ -63,7 +63,8 @@ class TopUpOrderService:
args
[
'ab_status'
]
=
'WAIT'
args
[
'ab_status'
]
=
'WAIT'
subject
=
'探普币充值'
subject
=
'探普币充值'
out_trade_no
=
args
[
'ab_ordernum'
]
out_trade_no
=
args
[
'ab_ordernum'
]
notify_url
=
args
[
'host_url'
]
+
'tamp_order/micro_shop/topUpOrderNotify'
# notify_url = args['host_url'] + 'tamp_order/micro_shop/topUpOrderNotify'
notify_url
=
config
[
env
][
'pay_url_prefix'
]
+
'/tamp_order/micro_shop/topUpOrderNotify'
pay_params
=
None
pay_params
=
None
if
args
[
'pay_method'
]
==
5
:
if
args
[
'pay_method'
]
==
5
:
# 微信支付
# 微信支付
...
@@ -178,7 +179,8 @@ class CurriculumOrderService:
...
@@ -178,7 +179,8 @@ class CurriculumOrderService:
args
[
'ab_status'
]
=
'WAIT'
args
[
'ab_status'
]
=
'WAIT'
subject
=
args
.
get
(
'prod_name'
,
''
)
subject
=
args
.
get
(
'prod_name'
,
''
)
out_trade_no
=
args
[
'ab_ordernum'
]
out_trade_no
=
args
[
'ab_ordernum'
]
notify_url
=
args
[
'host_url'
]
+
'tamp_order/micro_shop/consumeOrderNotify'
# notify_url = args['host_url'] + 'tamp_order/micro_shop/consumeOrderNotify'
notify_url
=
config
[
env
][
'pay_url_prefix'
]
+
'tamp_order/micro_shop/consumeOrderNotify'
pay_params
=
None
pay_params
=
None
# 该用户是否重复购买同一商品
# 该用户是否重复购买同一商品
repeat_buy
=
tamp_user_session
.
query
(
OrderFlow
.
id
)
.
filter
(
and_
(
OrderFlow
.
createby
==
args
[
'user_id'
]),
repeat_buy
=
tamp_user_session
.
query
(
OrderFlow
.
id
)
.
filter
(
and_
(
OrderFlow
.
createby
==
args
[
'user_id'
]),
...
...
logs/tamp_course_order.log
View file @
b947a441
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