11 lines
293 B
Python
11 lines
293 B
Python
"""客户服务快捷登记:payload 规范化与字典回写(逐步扩展)。"""
|
|
from typing import Optional
|
|
|
|
|
|
def normalize_dict_value(raw) -> Optional[str]:
|
|
"""Trim; empty/None -> None."""
|
|
if raw is None:
|
|
return None
|
|
text = str(raw).strip()
|
|
return text or None
|