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: 新增Line Notify 機器人實作 #285
Conversation
error: "https://gitee.com/sonic-cloud/sonic-cloud/raw/main/src/assets/fail.png" | ||
line-notify: | ||
host: "https://notify-api.line.me/api/notify" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个url固定的话,我建议放在impl里用final string就可以了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
理論上應該是不會改變,我先調整
sonic-server-controller/src/main/java/org/cloud/sonic/controller/tools/robot/RobotFactory.java
Show resolved
Hide resolved
...r-controller/src/main/java/org/cloud/sonic/controller/tools/robot/vendor/LineNotifyImpl.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢您的贡献,修改建议如上
調整RobotFactory取得實作寫法
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
准许合入
不过在我们的地区,Line Notify和telegram使用比较少,可以帮忙验证一下代码正确性吗 |
非常感谢 |
如果方便的话,可以在这里添加line notify的使用方法吗 https://github.com/SonicCloudOrg/sonic-offical-website/edit/main/src/markdown/doc/doc-robot.md |
沒問題已補上 |
在提出此拉取请求时,我确认了以下几点(保存后请点击复选框):
填写PR内容:新增Line Notify 機器人實作