Giter Site home page Giter Site logo

zyh94946 / wx-msg-push-tencent Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 10.0 30.46 MB

基于腾讯云云函数和API网关实现的企业微信应用消息推送服务

License: MIT License

Go 97.12% Makefile 2.88%
golang push-notifications serverless-functions

wx-msg-push-tencent's People

Contributors

zyh94946 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wx-msg-push-tencent's Issues

重复内容无法收到

EnableDuplicateCheck 已经是0 时间间隔也调到0了 重复内容还是不能及时推送 是哪里还需要设置问题吗

请教一下部署返回错误问题

您好,按照您在readme中的说明,我部署到了云函数上。各项设置都是正确的,但是操作:
https://api网址/项目名称/CORP_SECRET?title=%22title%22&content=%22none%22&type=text
返回的结果是:
{"errorCode":-1,"errorMessage":"user code exception caught","requestId":"2cf5f58e3d29d72350dcc4ba096","stackTrace":"invoke function failed with err: {\"Message\":\"Request check fail \",\"Type\":\"errorString\",\"StackTrace\":null,\"ShouldExit\":false}","statusCode":430}
云函数日志显示:
`START RequestId:23d279d4c6b04007bb2bc07136c40230

2021/07/06 03:12:21 event: map[headerParameters:map[] headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9 accept-encoding:gzip, deflate, br accept-language:zh-CN,zh;q=0.9 connection:keep-alive endpoint-timeout:15 host:service-xxxx-1258946465.hk.apigw.tencentcs.com requestsource:APIGW sec-ch-ua:" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91" sec-ch-ua-mobile:?0 sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:none sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 x-api-requestid:23d279dxxxxbb2bc07136c40230 x-api-scheme:https x-b3-traceid:23d279d4cxxxxbb2bc07136c40230 x-qualifier:$DEFAULT] httpMethod:GET isBase64Encoded:false path:/golang-wxpush01/CORP_SECRET pathParameters:map[SECRET:CORP_SECRET] queryString:map[content:"none" title:"title1" type:text] queryStringParameters:map[] requestContext:map[httpMethod:ANY identity:map[] path:/xxx/{SECRET} serviceId:service-olcz8t56 sourceIp:222.218.124.37 stage:release]]

2021/07/06 03:12:21 request: {GET map[content:"none" title:"title1" type:text] map[SECRET:CORP_SECRET]} json error:

2021/07/06 03:12:21 Request check fail

ERROR RequestId:23d279d4xxxxxxx07136c40230 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"invoke function failed with err: {"Message":"Request check fail ","Type":"errorString","StackTrace":null,"ShouldExit":false}","statusCode":430}

END RequestId:23d279d4c6b04007bb2bc07136c40230

Report RequestId:23d27xxxxxxxbc07136c40230 Duration:83ms Memory:128MB MemUsage:33.628906MB`

多个应用id

如果需要开启多个应用 可以在高级配置里面支持设置 CORP_ID2 CORP_SECRET3 这样的形式吗 不然只能新建新函数 新api 要额外收费

企业微信限制了IP白名单?

触发API网关访问,提示Send msg return errcode, errcode: 60020 errmsg: not allow to access from your ip, hint: [1662317178339603627481038], from ip: 114.132.235.244, more info at https://open.work.weixin.qq.com/devtool/query?e=60020\
我去看了一下,大概就是这个云函数出口IP地址没有在企业微信应用设置的白名单内,所以拒绝调用企业微信的接口,然而云函数的出口IP不固定,且企业微信不允许添加云函数的IP地址为白名单。所以说这个项目是不是不能使用了?

你好

不好意思打扰一下。。实在不想打扰。。不过我不是这方面的。。只是手里有一个腾讯云服务器刚好也需要这方面才找到你这里。。。。
就是云函数我记得超过一定会收费 这个有办法在轻量云服务器上直接用吗,如果觉得问题太那啥了直接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.