通知公告优化

This commit is contained in:
李鹏宇
2026-05-29 18:02:22 +08:00
parent b357032ba7
commit c48b1333f8
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -204,8 +204,10 @@ class WeComApps(models.Model):
},
}
else:
# 默认分支:优先用 user_id,其次用 touser
target_user = user_id or touser
data = {
'touser': touser,
'touser': target_user,
'msgtype': 'textcard',
'agentid': wecom_app.agent_id,
"textcard": {