Commit 58ef93f4 authored by lixiaofang's avatar lixiaofang

str

parent 86fe45a9
......@@ -202,7 +202,7 @@ class QueryWordAttr(object):
redis_data = redis_client.get(key)
redis_client.expire(key, 10 * 60)
if redis_data:
redis_data = json.loads(redis_data)
redis_data = json.loads(str(redis_data, encoding="utf8"))
if lower_query in redis_data:
return False
else:
......
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