Mojo-Weixin
Mojo-Weixin copied to clipboard
发送测试消息为空,请教。
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
解决了吗?
目前还没有,最近忙,没弄,弄好了我告诉你
id不存在 api调用存在问题
curl后面的访问url要用引号括起来,不然会被命令行转码导致访问出错
curl “http://10.3.10.246:3000/openwx/send_friend_message?id=xxx&content=hello”
楼主可能用的是昵称而非ID,如果这样的话参数要用displayname进行传参,且非ascii字符要编码。
curl后面的访问url要用引号括起来,不然会被命令行转码导致访问出错
curl “http://10.3.10.246:3000/openwx/send_friend_message?id=xxx&content=hello”
果然就是大神,谢谢