-
Notifications
You must be signed in to change notification settings - Fork 410
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
feat(notify): support wecom group bot notification #2904
Conversation
本次改动如下:
具体改动见 Files Changed 测试日志如下: /workspace/waline (main) $ node ./packages/server/vanilla.js
[2025-01-16T02:02:30.107] [1250] [INFO] - Server running at http://127.0.0.1:8360
[2025-01-16T02:02:30.108] [1250] [INFO] - ThinkJS version: 3.2.15
[2025-01-16T02:02:30.109] [1250] [INFO] - Environment: production
[2025-01-16T02:02:30.109] [1250] [INFO] - Workers: 1
(node:1261) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[2025-01-16T02:02:50.355] [1261] [DEBUG] - Post Comment Start!
[2025-01-16T02:02:50.355] [1261] [DEBUG] - Post Comment initial Data: {
link: 'test.com',
mail: '[email protected]',
nick: '张三',
pid: undefined,
rid: undefined,
ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
url: '/',
comment: '评论测试',
ip: '114.94.77.73',
insertedAt: '2025-01-16T02:02:50.355Z',
user_id: undefined
}
[2025-01-16T02:02:50.356] [1261] [DEBUG] - Comment IP 114.94.197.23 check OK!
[2025-01-16T02:02:50.441] [1261] [DEBUG] - Comment duplicate check OK!
[2025-01-16T02:02:50.807] [1261] [DEBUG] - Comment post frequency check OK!
[2025-01-16T02:02:50.807] [1261] [DEBUG] - Comment initial status is approved
[2025-01-16T02:02:51.183] [1261] [DEBUG] - Comment akismet check result: approved
[2025-01-16T02:02:51.184] [1261] [DEBUG] - Comment keyword check result: approved
[2025-01-16T02:02:51.184] [1261] [DEBUG] - Comment post hooks preSave done!
[2025-01-16T02:02:51.646] [1261] [DEBUG] - Comment have been added to storage.
Wecom Group Notification Success: {"errcode":0,"errmsg":"ok"}
Notification mail send success: undefined
[2025-01-16T02:02:52.525] [1261] [DEBUG] - Comment notify done!
[2025-01-16T02:02:52.525] [1261] [DEBUG] - Comment post hooks postSave done! @Mister-Hope @lizheming 如果有时间请帮忙review下代码,看是否满足合并要求 |
这个企业微信 QQ 群通知的能力,能否做成插件的形式呢,后期相关的通知能力也会转成插件的形式支持 Can this enterprise WeChat QQ group notification capability be made into a plug-in form? Later related notification capabilities will also be converted into a plug-in form to support |
👍 这是个好主意,一些附加功能通过插件形式提供,核心功能尽量紧凑精简。但可能要花时间研究下插件了 |
确实挺简单的,一个中午就写完代码且测试好了(企微群机器人评论插件),稍后提交一个PR到plugins仓库。 |
@lizheming 对于后期通知方式的支持,是希望做成每种通知方式都独立的一个插件,还是统一集成在一个统一的Notification插件内?
@lizheming Regarding the support for later notification methods, do you want to make each notification method an independent plug-in, or do you want it to be integrated into a unified Notification plug-in? |
支持新的通知方式:企业微信群机器人
Refs: #2655,#2753 ,#2661
感谢 @lizheming 的指导,现已加入对企业微信群机器人的支持。
参考:企业微信群机器人 开发文档
已通过本地测试,并更新了官方文档。