Commit 79115f48 by dong

fix20230107

parent d84b8d54
...@@ -359,7 +359,7 @@ def get_semic_map(): ...@@ -359,7 +359,7 @@ def get_semic_map():
body = body_by_companyName(company_name) body = body_by_companyName(company_name)
result_es = json.loads(requests.post(url=url, json=body).text) result_es = json.loads(requests.post(url=url, json=body).text)
if result_es["status"] == 404: if result_es["status"] == 404:
return jsonify(code=RET.NODATA, msg="无相关数据!") return jsonify(code=RET.NODATA, msg="无供应链地图相关数据!")
products = list(set([i["_source"]["product"] for i in result_es["hits"]["hits"]])) # 无需去重,最终数据不会出现重复项 products = list(set([i["_source"]["product"] for i in result_es["hits"]["hits"]])) # 无需去重,最终数据不会出现重复项
# print("直接产品:", products) # print("直接产品:", products)
......
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