fix(fulfillment): 客户资料渠道比对兼容线上手Q标签
- 线上账号渠道为微信/手Q,不能直接用QQ比较 - 补充手Q+苹果渠道匹配测试
This commit is contained in:
@@ -710,10 +710,15 @@ def _customer_profile_out(
|
||||
if role and platform_role:
|
||||
role_matched = role == platform_role
|
||||
channel_matched: bool | None = None
|
||||
# 线上账号渠道写作「微信 / 手Q」,QQ 不能直接拿 "QQ" 去比。
|
||||
customer_channel = " ".join(
|
||||
[
|
||||
"微信" if task.customer_platform == "wechat" else ("QQ" if task.customer_platform == "qq" else ""),
|
||||
"苹果" if task.customer_system == "ios" else ("安卓" if task.customer_system == "android" else ""),
|
||||
"微信"
|
||||
if task.customer_platform == "wechat"
|
||||
else ("手Q" if task.customer_platform == "qq" else ""),
|
||||
"苹果"
|
||||
if task.customer_system == "ios"
|
||||
else ("安卓" if task.customer_system == "android" else ""),
|
||||
]
|
||||
).strip()
|
||||
account_channel = str(
|
||||
|
||||
Reference in New Issue
Block a user