Commit 3d3f2431 by dong

fix

parent f1b9f78b
...@@ -141,13 +141,14 @@ def industry_cluster(): ...@@ -141,13 +141,14 @@ def industry_cluster():
flag = req_dic['flag'] flag = req_dic['flag']
try: try:
industry_obj = IndustryChain.query.filter_by(industry_name=industry_name).first() industry_obj = IndustryChain.query.filter_by(oname=industry_name).first()
industry_id = industry_obj.id industry_id = industry_obj.id
chain_id = industry_obj.chain_id chain_id = industry_obj.chain_id
if flag == 2: if flag == 2:
# 查询redis # 查询redis
result = redis_store.get('chain_id_{}'.format(industry_id)) result = redis_store.get('chain_id_{}'.format(industry_id))
if result: if result:
return jsonify(code=RET.OK, msg="获取成功", data=json.loads(result)) return jsonify(code=RET.OK, msg="获取成功", data=json.loads(result))
result = { result = {
......
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