Skip to content

[求助]消息发送失败 #786

Open

Description

@tomlongcool
  • 对 Bug 的描述

    • 当前行为:有个函数返回一个字符串,然后再发送给微信粉丝这个字符串
    • 正确的行为:
  • 环境

    • 平台:win
    • WeRoBot 版本号:1.13.1
    • Python 版本:3.8
  • 复现代码或 repo 链接

def get_info():
    #是个爬虫程序 返回的是一个字符串 并且已经测试通过


robot=werobot.WeRoBot(token='tom121')

@robot.text
def hello(message):
    final=str(get_info(message.content))
    return final

robot.config['HOST']='0.0.0.0'
robot.config['PORT']=80
robot.run()

# 请在这里给出 bug 的复现代码。如有必要,可以创建一个复现 repo 并将链接粘贴到这里。
  • 复现步骤

b0bb82a919c7bb92fa7c36f99b28917

控制台可以打印出hello函数中final的内容,但是微信端却是异常,且没有返回消息

  • 其他信息

Activity

  1. pys0126 commented on Mar 13, 2023

    @pys0126

    同问

  2. kadaliao commented on Mar 17, 2023

    @kadaliao

    同样的问题,求教。

  3. kadaliao commented on Mar 27, 2023

    @kadaliao

    同样的问题,求教。

    需要将消息设置为明文。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions