Commit 17b8f762 authored by lixiaofang's avatar lixiaofang

add

parent be51b923
......@@ -174,8 +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:
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 type:%s" %type(redis_client.hget(QUERY_KEY, query_base64)))
value_data = json.loads(str(redis_client.hget(QUERY_KEY, query_base64),encoding='utf-8'))
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