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
2f578ede
Commit
2f578ede
authored
Apr 22, 2021
by
etscript
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
66e30339
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
order_service.py
app/service/order_service.py
+6
-1
No files found.
app/service/order_service.py
View file @
2f578ede
...
...
@@ -244,7 +244,7 @@ class CurriculumOrderService:
tamp_user_session
,
tamp_pay_session
=
tamp_user
.
session
,
tamp_pay
.
session
args
[
'ab_ordernum'
]
=
time
.
strftime
(
'
%
Y
%
m
%
d'
,
time
.
localtime
(
time
.
time
()))
+
str
(
int
(
time
.
time
()
*
100000
))
if
args
[
'ab_type'
]
!
=
"300"
:
if
args
[
'ab_type'
]
=
=
"300"
:
data
=
{
"payReqs"
:
[{
"resId"
:
args
[
'ab_proid'
]}],
"userId"
:
args
[
'user_id'
]
...
...
@@ -345,6 +345,11 @@ class CurriculumOrderService:
pay_params
=
res
elif
args
[
'ab_pay_mode'
]
==
8
:
# 微信公众号支付
# 特殊情况,广告推广支付
ad
=
args
.
get
(
"ad"
)
if
ad
==
'April'
:
args
.
pop
(
'ad'
,
''
)
subject
=
subject
+
','
+
ad
wx_pay
=
wx_jsapi_pay
.
WXPay
(
args
[
'openid'
],
out_trade_no
,
subject
,
args
[
'ab_payment'
],
args
[
'remote_addr'
],
notify_url
)
params
=
wx_pay
.
getReturnParams
()
pay_params
=
params
...
...
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