diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index f4f4470..af376ec 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -146,9 +146,8 @@ class WechatChannel(Channel): if reply_text: self.send(reply_text, msg['User']['UserName']) - def check_prefix(self, content, prefix_list): for prefix in prefix_list: - if content.lower().startswith(prefix.lower()): + if content.startswith(prefix): return prefix return None