GithubHelp home page GithubHelp logo

lenye / pmsg Goto Github PK

View Code? Open in Web Editor NEW
45.0 4.0 13.0 457 KB

发送消息的小工具:企业微信群机器人消息,钉钉自定义机器人消息,飞书自定义机器人消息,Slack bot,微信消息,微信客服消息,企业微信消息,企业微信客服消息

Home Page: https://lenye.github.io/pmsg/

License: Apache License 2.0

Go 99.97% Dockerfile 0.03%
wechat weixin dingtalk feishu slack dingding dingding-bot dingding-robot dingtalk-bot dingtalk-robot

pmsg's Issues

Base64 encoder 未 Close 导致的企业微信机器人图片发送失败

企业微信机器人,使用 ImageFile2Meta 生成的结构体发送图片失败,错误信息

weixin request error; errcode: 301019, errmsg: "media md5 not match, more info at https://open.work.weixin.qq.com/devtool/query?e=301019"

测试图片:https://user-images.githubusercontent.com/26185872/211131620-4e31726f-4767-403e-b17a-263ebc7a25a1.png

实际原因是 baser64 encoder 没有 Close 导致最后几个字节没有被编码。

参考官方 example:https://github.com/golang/go/blob/master/src/encoding/base64/example_test.go#L77

修复建议:https://github.com/lenye/pmsg/blob/main/pkg/weixin/work/bot/meta.go#L75 增加调用 Close()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.