mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
feat: support set wechatmp_port
This commit is contained in:
@@ -41,7 +41,8 @@ class WechatMPChannel(ChatChannel):
|
||||
'/wx', 'SubsribeAccountQuery',
|
||||
)
|
||||
app = web.application(urls, globals())
|
||||
app.run()
|
||||
port = conf().get('wechatmp_port', 8080)
|
||||
web.httpserver.runsimple(app.wsgifunc(), ('0.0.0.0', port))
|
||||
|
||||
|
||||
def send(self, reply: Reply, context: Context):
|
||||
|
||||
Reference in New Issue
Block a user