Refactor: inherit ChatChannel

This commit is contained in:
JS00000
2023-04-05 20:55:24 +08:00
parent 44f6892cb7
commit 1a981ea970
3 changed files with 134 additions and 220 deletions

View File

@@ -18,6 +18,6 @@ def create_channel(channel_type):
from channel.terminal.terminal_channel import TerminalChannel
return TerminalChannel()
elif channel_type == 'wechatmp':
from channel.wechatmp.wechatmp_channel import WechatMPServer
return WechatMPServer()
from channel.wechatmp.wechatmp_channel import WechatMPChannel
return WechatMPChannel()
raise RuntimeError