Commit c56896d0 authored by 段英荣's avatar 段英荣

modify

parent ba536df1
......@@ -31,10 +31,13 @@ def auto_complete_query(q,lat,lng):
data = get_suggest_tips(q,float(lat),float(lng))
return {"tips_list":data}
result = {
'error': 0,
'data': data,
}
return result
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return {"tips_list":[]}
return {"error":1,"data":[]}
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