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

botops-feishu可以多一层抽象或者换一个botops-feishu-task的包 #6

Closed
lloydzhou opened this issue Jan 20, 2024 · 4 comments
Closed
Assignees

Comments

@lloydzhou
Copy link

  1. 将获取cookie抽象成一个task,这个task返回一个observable对象

这样方便可以通过配置不同的CustomRenderer支持不同的展示逻辑,这里实际可以不弹浏览器窗口,将二维码放到控制台展示(参考qrcode-terminal

image

  1. 后面的部署任务也直接导出一个task,使用类似的逻辑
@lloydzhou
Copy link
Author

lloydzhou commented Jan 20, 2024

image

@lloydzhou
Copy link
Author

#7

@lloydzhou
Copy link
Author

@lloydzhou
Copy link
Author

抽象这一层之后,在控制台和网页上执行任务的时候,只是传递了不一样的renderer就能在不同的地方进行扫码,并且以不同的方式展示结果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants