之前存在106.52上的仓库被重新初始化了,同时增加了测试账号的兼容,测试账号hxbtest001,...hxbtest005

This commit is contained in:
qcloud
2025-09-01 20:09:26 +08:00
parent e6644a5262
commit 8d90798647
16 changed files with 25420 additions and 157 deletions

View File

@@ -48,8 +48,8 @@ class MesumAntiqueService(CommonService):
# 统一替换中文分号为英文分号,并去除末尾分号
if categories_text:
categories_text = categories_text.replace("", ";").rstrip(";")
# 分割并清理空格/空值
mesum_antique_categories = [dynasty.strip() for dynasty in categories_text.split(";") if dynasty.strip()]
# 分割并清理空格/空值
mesum_antique_categories = [dynasty.strip() for dynasty in categories_text.split(";") if dynasty.strip()]
finally:
pass
@@ -115,7 +115,8 @@ class MesumAntiqueService(CommonService):
for obj in query.dicts():
labels_data.append({
'id': obj['id'],
'label': obj['label']
'label': obj['label'],
"category": obj['category'],
})
return labels_data