Commit 9f103c01 authored by wang zhengwei's avatar wang zhengwei

fix bug

parent f2ded871
......@@ -38,7 +38,10 @@ class ReportHandlers(Resource):
ifa_id = redis.get(token).decode()
if not ifa_id:
return {"code":40005,"data":None,"lang":"zh_CN","msg":"请登陆"}
ifa_id = ifa_id.replace('\'', '')
if '\''in ifa_id:
ifa_id = ifa_id.replace('\'', '')
if '\"'in ifa_id:
ifa_id = ifa_id.replace('\"', '')
customer_id = args['customer_id']
pdf_name = str(ifa_id) + str(customer_id) + '.pdf'
......
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