Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分发器:企业微信分发部门ID参数不定 #16

Closed
howie6879 opened this issue Dec 24, 2021 · 4 comments
Closed

分发器:企业微信分发部门ID参数不定 #16

howie6879 opened this issue Dec 24, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@howie6879
Copy link
Owner

问题:

企业微信分发的toparty参数不一定总是为1,需要自动获取。有的可能为2

image

@howie6879 howie6879 added the bug Something isn't working label Dec 24, 2021
@howie6879 howie6879 changed the title 分发器:企业微信分发部门ID参数可配置 分发器:企业微信分发部门ID参数不定 Dec 24, 2021
@zyd16888
Copy link
Contributor

多部门是否要考虑在内,如下情况。

{'errcode': 0, 'errmsg': 'ok', 'department': [{'id': 2, 'name': '公众号消息推送', 'parentid': 1, 'order': 100000000, 'department_leader': []}, {'id': 3, 'name': '签到消息推送', 'parentid': 1, 'order': 99999000, 'department_leader': []}, {'id': 5, 'name': 'epic推送', 'parentid': 1, 'order': 99997000, 'department_leader': []}]}

或者是否可以考虑,不使用部门做区分,直接使用 touser: @all 参数。

@howie6879
Copy link
Owner Author

howie6879 commented Dec 25, 2021

@zyd16888 我觉得当前部门分发支持不变,然后用户定了toparty就用用户定的,没有定就自动获取

对于touser,可以考虑再增加一个函数来针对这个分发情况,然后默认发部门,用户可定义发touser

两种方式都支持。

@zyd16888
Copy link
Contributor

开始修复了,看空闲时间,最晚一周处理完(我尽量快些)。

howie6879 added a commit that referenced this issue Dec 27, 2021
Fixed: 动态获取企业微信分发部门ID参数 #16
@howie6879
Copy link
Owner Author

Fixed by #21

howie6879 added a commit that referenced this issue Jan 27, 2022
Fixed: 动态获取企业微信分发部门ID参数 #16
howie6879 added a commit that referenced this issue Feb 8, 2022
Fixed: 动态获取企业微信分发部门ID参数 #16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants