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

发送测试消息为空,请教。 #209

Open
dx8439 opened this issue Apr 3, 2019 · 7 comments
Open

发送测试消息为空,请教。 #209

dx8439 opened this issue Apr 3, 2019 · 7 comments

Comments

@dx8439
Copy link

dx8439 commented Apr 3, 2019

docker运行的项目:

docker run -it --env MOJO_WEIXIN_LOG_ENCODING=utf8 -p 3000:3000 -v /tmp/weixin:/tmp --name wechat sjdy521/mojo-weixin
发送测试消息:

curl http://10.3.10.246:3000/openwx/send_friend_message?id=xxx&content=hello
[1] 38476

{"code":100,"id":null,"status":"object not found"}
防火墙端口已经开放,但是docker不开放火墙运行又有问题。

@opengpu
Copy link

opengpu commented May 4, 2019

解决了吗?

@opengpu
Copy link

opengpu commented May 4, 2019

@dx8439

@dx8439
Copy link
Author

dx8439 commented May 5, 2019

解决了吗?

目前还没有,最近忙,没弄,弄好了我告诉你

@hexsum
Copy link
Owner

hexsum commented May 6, 2019

id不存在 api调用存在问题

@bollwarm
Copy link
Collaborator

bollwarm commented May 6, 2019

curl后面的访问url要用引号括起来,不然会被命令行转码导致访问出错

curl “http://10.3.10.246:3000/openwx/send_friend_message?id=xxx&content=hello”

@wglnngt
Copy link

wglnngt commented May 8, 2019

楼主可能用的是昵称而非ID,如果这样的话参数要用displayname进行传参,且非ascii字符要编码。

@dx8439
Copy link
Author

dx8439 commented May 23, 2019

curl后面的访问url要用引号括起来,不然会被命令行转码导致访问出错

curl “http://10.3.10.246:3000/openwx/send_friend_message?id=xxx&content=hello”

果然就是大神,谢谢

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

5 participants