mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-03-05 08:06:45 +08:00
fix: wechat mp channel listen host change #14
This commit is contained in:
@@ -24,6 +24,7 @@ class WechatSubsribeAccount(Channel):
|
||||
def startup(self):
|
||||
logger.info('[WX_Public] Wechat Public account service start!')
|
||||
robot.config['PORT'] = channel_conf(const.WECHAT_MP).get('port')
|
||||
robot.config['HOST'] = '0.0.0.0'
|
||||
robot.run()
|
||||
|
||||
def handle(self, msg, count=0):
|
||||
|
||||
@@ -20,6 +20,7 @@ class WechatServiceAccount(Channel):
|
||||
robot.config['PORT'] = channel_conf(const.WECHAT_MP).get('port')
|
||||
robot.config["APP_ID"] = channel_conf(const.WECHAT_MP).get('app_id')
|
||||
robot.config["APP_SECRET"] = channel_conf(const.WECHAT_MP).get('app_secret')
|
||||
robot.config['HOST'] = '0.0.0.0'
|
||||
robot.run()
|
||||
|
||||
def handle(self, msg, count=0):
|
||||
|
||||
Reference in New Issue
Block a user