通知公告优化
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user