Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomlongcool opened this issue Jan 16, 2023 · 3 comments
Open

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

tomlongcool opened this issue Jan 16, 2023 · 3 comments

Comments

@tomlongcool
Copy link

  • 对 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的内容,但是微信端却是异常,且没有返回消息

  • 其他信息
@pys0126
Copy link

pys0126 commented Mar 13, 2023

同问

@kadaliao
Copy link

同样的问题,求教。

@kadaliao
Copy link

同样的问题,求教。

需要将消息设置为明文。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants