Commit 31c76fa6 by dong

fix20230107

parent 79115f48
......@@ -359,7 +359,7 @@ def get_semic_map():
body = body_by_companyName(company_name)
result_es = json.loads(requests.post(url=url, json=body).text)
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"]])) # 无需去重,最终数据不会出现重复项
# 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