Commit ae8320d3 authored by wang zhengwei's avatar wang zhengwei

修改返回

parent bc46305a
......@@ -54,12 +54,16 @@ class ReportHandlers(Resource):
)
tamp_diagnose_app_session.execute(sql)
start = time.time()
check = 0
try:
dt = DataIntegrate(ifa_id=ifa_id, customer_id=customer_id, pdf_name=pdf_name)
dt.render_data()
check = 1
except:
return {"code":-1, "msg": "内部错误"}
pass
print('耗时{}秒'.format(round(time.time() - start, 2)))
if check == 0:
return {"code":-1, "msg": "内部错误"}
# auth = oss2.Auth(config[env]['oss']['account'], config[env]['oss']['password'])
# # Endpoint以杭州为例,其它Region请按实际情况填写。
......
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