Commit c4c28858 authored by etscript's avatar etscript

fix bug

parent 0834c959
...@@ -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("用户提升级别接口失败")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment