Преглед на файлове

Merge pull request #1821 from gufei/fix-bug

修复两处BUG
master
Saboteur7 GitHub преди 7 месеца
родител
ревизия
798e30e5ac
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
променени са 2 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. +1
    -1
      bridge/reply.py
  2. +0
    -1
      channel/wechat/wechat_channel.py

+ 1
- 1
bridge/reply.py Целия файл

@@ -11,7 +11,7 @@ class ReplyType(Enum):
VIDEO_URL = 5 # 视频URL
FILE = 6 # 文件
CARD = 7 # 微信名片,仅支持ntchat
InviteRoom = 8 # 邀请好友进群
INVITE_ROOM = 8 # 邀请好友进群
INFO = 9
ERROR = 10
TEXT_ = 11 # 强制文本


+ 0
- 1
channel/wechat/wechat_channel.py Целия файл

@@ -233,7 +233,6 @@ class WechatChannel(ChatChannel):
logger.info("[WX] sendImage url={}, receiver={}".format(img_url, receiver))
elif reply.type == ReplyType.IMAGE: # 从文件读取图片
image_storage = reply.content
image_storage.seek(0)
itchat.send_image(image_storage, toUserName=receiver)
logger.info("[WX] sendImage, receiver={}".format(receiver))
elif reply.type == ReplyType.FILE: # 新增文件回复类型


Loading…
Отказ
Запис