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

wx-bot-webhook中能不能加一个host的配置项,不然每次只能调用loaclhost,谢谢 #23

Closed
Warlock1994 opened this issue Jan 29, 2024 · 2 comments · Fixed by #24
Labels
enhancement New feature or request

Comments

@Warlock1994
Copy link

Warlock1994 commented Jan 29, 2024

[wx-bot-webhook]
# 发送消息的端口,wxBotWebhook Docker 的端口(<<3001>>)
wx_webhook_port = 3001
# 接收消息的接口路径,RECV_MSG_API的路径(<</receive_msg>>)
wx_webhook_recv_api_path = /receive_msg
class Sender:
    """v2 版本 api 消息发送类"""

    host = "http://localhost"
    url = f"{host}:{config.wx_webhook_port}/webhook/msg/v2"
@Cassius0924
Copy link
Owner

当然

@Cassius0924 Cassius0924 linked a pull request Jan 29, 2024 that will close this issue
@Cassius0924
Copy link
Owner

已添加 wx_webhook_host 配置。谢谢的你 Issue,顺带修复了个 Sender 一个的 bug

@Cassius0924 Cassius0924 added the enhancement New feature or request label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants