'修复bug提单工具【标题】字段包含跨行文本时报错'

This commit is contained in:
zelong 2026-04-22 14:07:12 +08:00
parent 4e189d6f44
commit 3dc4815e26

View File

@ -202,7 +202,7 @@ class FieldMapper:
tapd_data = {}
# 1. 标题(必填)
title = record_data.get('标题', '').strip()
title = self._convert_multiline_text(record_data.get('标题', ''))
if not title:
raise ValueError("标题不能为空")
tapd_data['title'] = title