Commit 20b565b2 by dong

fix

parent 7febfa4f
...@@ -572,8 +572,8 @@ def attract_enterprise(): ...@@ -572,8 +572,8 @@ def attract_enterprise():
return jsonify(code=RET.DBERR, msg="数据库查询错误") return jsonify(code=RET.DBERR, msg="数据库查询错误")
# redis缓存 # redis缓存
try: try:
pass # pass
# redis_store.setex(name_query, 30 * 24 * 3600, json.dumps(data)) redis_store.setex(name_query, 30 * 24 * 3600, json.dumps(data))
except: except:
return jsonify(code=RET.DBERR, msg="redis保存失败!") return jsonify(code=RET.DBERR, msg="redis保存失败!")
return jsonify(code=RET.OK, msg="获取成功", data=data) return jsonify(code=RET.OK, msg="获取成功", data=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