refactor: destinationCountry 统一归一为中文国名

This commit is contained in:
yeuimu
2026-08-02 15:58:51 +00:00
parent 4b2ef120b5
commit 7ed1893b83
2 changed files with 58 additions and 6 deletions
+2 -2
View File
@@ -121,10 +121,10 @@ def label_ocr(
) -> dict:
"""面单 OCR enrichment。默认处理英国(GB)+美国(US),近 7 天下单的订单。
手动跑其他国家: label_ocr(destination_countries=['DE'])
手动跑其他国家: label_ocr(destination_countries=['德国'])
"""
if destination_countries is None:
destination_countries = ['GB', 'US']
destination_countries = ['英国', '美国']
if _has_running_peer():
print("已有 label-ocr 在运行,跳过本次")
return {"skipped": True}