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
c4c28858
Commit
c4c28858
authored
Apr 23, 2021
by
etscript
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
0834c959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
order_service.py
app/service/order_service.py
+4
-1
No files found.
app/service/order_service.py
View file @
c4c28858
...
@@ -265,6 +265,8 @@ class CurriculumOrderService:
...
@@ -265,6 +265,8 @@ class CurriculumOrderService:
try
:
try
:
amount
=
amount
.
json
()
amount
=
amount
.
json
()
amount
=
[
int
(
amount
[
"attributes"
][
"bargainPrice"
])]
amount
=
[
int
(
amount
[
"attributes"
][
"bargainPrice"
])]
print
(
amount
)
print
(
float
(
amount
)
/
100
)
except
:
except
:
raise
CustomFlaskErr
(
Errors
.
PROD_NOPRICE
)
raise
CustomFlaskErr
(
Errors
.
PROD_NOPRICE
)
...
@@ -448,10 +450,11 @@ def consumeSucessAction(order_no, transaction_id):
...
@@ -448,10 +450,11 @@ def consumeSucessAction(order_no, transaction_id):
"env"
:
"ios"
"env"
:
"ios"
}
}
try
:
try
:
requests
.
post
(
course_rollback_api
,
tmp
=
requests
.
post
(
course_rollback_api
,
headers
=
headers
,
headers
=
headers
,
json
=
data
,
json
=
data
,
timeout
=
5
)
timeout
=
5
)
print
(
tmp
.
json
())
except
:
except
:
print
(
"用户提升级别接口失败"
)
print
(
"用户提升级别接口失败"
)
...
...
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