|
|
@@ -63,10 +63,9 @@ def get_license_list():
|
|
|
{
|
|
|
"产品名称":record["ProductTitle"],
|
|
|
"产品分类":record["Category"],
|
|
|
- "产品分类":record["ProductSeries"]
|
|
|
+ "产品系列":record["ProductSeries"]
|
|
|
}
|
|
|
)
|
|
|
-
|
|
|
return license_list
|
|
|
|
|
|
|
|
|
@@ -81,10 +80,15 @@ def check_infringement(title, brandname):
|
|
|
key_word_falg = False
|
|
|
|
|
|
key_word_judgement = json.loads(agent.brand_key_word_judgement(brandname, title))
|
|
|
+ print(type(agent.license_product_judgement(title, license_list)))
|
|
|
+ license_judgement = json.loads(agent.license_product_judgement(title, license_list))
|
|
|
key_word_falg = key_word_judgement["key_word_flag"]
|
|
|
+ license_judgement_flag = license_judgement["in_list"]
|
|
|
+ # license_flag = license_judgement["in_list"]
|
|
|
+ print(license_judgement)
|
|
|
result = f"""
|
|
|
关键词引流: {key_word_falg}
|
|
|
-
|
|
|
+ 是否为授权生产产品: {license_judgement_flag}
|
|
|
"""
|
|
|
return result
|
|
|
|