You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- """
- channel factory
- """
-
- from channel.wechat.wechat_channel import WechatChannel
-
- def create_channel(channel_type):
- """
- create a channel instance
- :param channel_type: channel type code
- :return: channel instance
- """
- if channel_type == 'wx':
- return WechatChannel()
- raise RuntimeError
|