Commit be51b923 authored by lixiaofang's avatar lixiaofang

add

parent acb91db9
......@@ -174,7 +174,8 @@ def get_suggest_tips(query, lat, lng, offset=0, size=50):
QUERY_KEY = "query:search_tip"
query_base64 = base64.b64encode(query.encode('utf8')).decode('utf8')
if redis_client.hget(QUERY_KEY, query_base64) is not None:
value_data = json.loads(redis_client.hget(QUERY_KEY, query_base64))
logging.info("get type:%s" %type(str(redis_client.hget(QUERY_KEY, query_base64))))
value_data = json.loads(str(redis_client.hget(QUERY_KEY, query_base64)))
logging.info("get value_data:%s" % value_data)
if len(value_data) > 0:
......
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