revert: 链接页聊天恢复纯文本,移除发送者追踪

This commit is contained in:
XingQue
2026-06-23 21:23:23 +08:00
parent 6e37477e4f
commit 3f4712bb44
3 changed files with 3 additions and 200 deletions

View File

@@ -69,15 +69,7 @@ def _send_group_message(appkey, secret, group_id, sender_id, sender_name, sender
if order_id:
to_data["orderId"] = order_id
if custom_payload:
if isinstance(custom_payload, dict) and custom_payload.get('_linkMeta') is not None:
payload_str = json.dumps(custom_payload, ensure_ascii=False)
elif isinstance(custom_payload, dict):
payload_str = custom_payload.get('text', message_text)
else:
payload_str = str(custom_payload)
else:
payload_str = message_text
payload_str = custom_payload.get("text", message_text) if custom_payload else message_text
request_body = {
"appkey": appkey,