Mojo-Weixin icon indicating copy to clipboard operation
Mojo-Weixin copied to clipboard

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

Open dx8439 opened this issue 5 years ago • 7 comments

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不开放火墙运行又有问题。

dx8439 avatar Apr 03 '19 08:04 dx8439

解决了吗?

opengpu avatar May 04 '19 00:05 opengpu

@dx8439

opengpu avatar May 04 '19 00:05 opengpu

解决了吗?

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

dx8439 avatar May 05 '19 08:05 dx8439

id不存在 api调用存在问题

hexsum avatar May 06 '19 01:05 hexsum

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

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

bollwarm avatar May 06 '19 01:05 bollwarm

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

wglnngt avatar May 08 '19 09:05 wglnngt

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

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

果然就是大神,谢谢

dx8439 avatar May 23 '19 07:05 dx8439