Commit c4c28858 authored by etscript's avatar etscript

fix bug

parent 0834c959
......@@ -265,6 +265,8 @@ class CurriculumOrderService:
try:
amount = amount.json()
amount = [int(amount["attributes"]["bargainPrice"])]
print(amount)
print(float(amount)/100)
except:
raise CustomFlaskErr(Errors.PROD_NOPRICE)
......@@ -448,10 +450,11 @@ def consumeSucessAction(order_no, transaction_id):
"env": "ios"
}
try:
requests.post(course_rollback_api,
tmp = requests.post(course_rollback_api,
headers = headers,
json = data,
timeout = 5)
print(tmp.json())
except:
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