feat: support set wechatmp_port

This commit is contained in:
lanvent
2023-04-06 00:48:29 +08:00
parent 7e7484a27d
commit 9d8ae80548
3 changed files with 6 additions and 3 deletions

View File

@@ -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):