weixin-java-mp-demo icon indicating copy to clipboard operation
weixin-java-mp-demo copied to clipboard

基于Spring Boot 和 WxJava 实现的微信公众号Java后端Demo,支持多公众号

Results 22 weixin-java-mp-demo issues
Sort by recently updated
recently updated
newest added

MaterialVoiceAndImageDownloadOkhttpRequestExecutor 和 MaterialVoiceAndImageDownloadApacheHttpRequestExecutor 无法自动刷新token 刷新token 的源码逻辑 ![2d593929cb714c5076d3caddfaf3725](https://github.com/binarywang/weixin-java-mp-demo/assets/26403954/89ffc3a5-436b-4fe1-9a12-6f136da00c39) 具体实现类的实现 ![image](https://github.com/binarywang/weixin-java-mp-demo/assets/26403954/3eb14320-f9dd-40f1-a1bd-d2ef236553f3) ![image](https://github.com/binarywang/weixin-java-mp-demo/assets/26403954/cf1e9c30-4656-4b6e-aee3-4876c13f63d1) 微信实际上返回的contentType : ![image](https://github.com/binarywang/weixin-java-mp-demo/assets/26403954/601ee9e8-fb4e-492b-a877-0fdb22b1381f)

获取token时,如果ip不在白名单里,会一直请求token接口,最后堆栈溢出

[{"_id":"66ce13e05a1d13a44707f338","body":"\u6b22\u8fce\u76f4\u63a5\u63d0\u4f9bPR\u5230WxJava\u4e2d\uff0c\u53e6\u5916\u9ebb\u70e6\u4ee5\u540e\u5c06\u95ee\u9898\u76f4\u63a5\u63d0\u5230WxJava\u91cc\uff0c\u591a\u8c22","issue_id":1709829992152,"origin_id":1807414315,"user_origin_id":1343140,"create_time":1699845373,"update_time":1699845391,"id":1724781536342,"updated_at":"2024-08-27T17:58:56.342000Z","created_at":"2024-08-27T17:58:56.342000Z"}] comment

如题, 微信不在白名单中返回的errcode是40164 微信原始报文:{"errcode":40164,"errmsg":"invalid ip ***** ipv6 ::ffff:*******, not in whitelist rid: 654e0b13-0f2e7229-0494092b"} 然后就会一直throw,一直catch

(org/testng/annotations/BeforeTest.class) [ERROR] 类文件具有错误的版本 55.0, 应为 52.0

[{"_id":"66ce13c7a14080c01c017e23","body":"testng\u7248\u672c\u95ee\u9898\uff0c\u6700\u65b0\u7248\u672c\u4e0d\u652f\u6301java8\uff1b\r\n\u4f60\u8981\u4e48\u5347\u7ea7jdk\u7248\u672c\uff0c\u8981\u4e48\u964d\u4f4etestng\u7248\u672c","issue_id":1709829992158,"origin_id":1545223798,"user_origin_id":1343140,"create_time":1683871871,"update_time":1683871871,"id":1724781511223,"updated_at":"2024-08-27T17:58:31.222000Z","created_at":"2024-08-27T17:58:31.222000Z"}] comment

![image](https://user-images.githubusercontent.com/9762702/236786126-01e9dd79-565c-4419-a832-c741f8cdaddc.png)

大佬,微信客服接口异步回复,会不会有并发问题啊,为什么人多使用的时候就会出现系统故障

[{"_id":"66ce13daa14080c01c017e26","body":"\u7cfb\u7edf\u6545\u969c\u662f\u6307\u4ec0\u4e48\uff1f\u62a5\u9519\u4fe1\u606f\u6709\u4ec0\u4e48","issue_id":1709829992173,"origin_id":1514870481,"user_origin_id":1343140,"create_time":1681915555,"update_time":1681915555,"id":1724781530280,"updated_at":"2024-08-27T17:58:50.279000Z","created_at":"2024-08-27T17:58:50.279000Z"}] comment

大佬,微信客服接口异步回复,会不会有并发问题啊,为什么人多使用的时候就会出现系统故障

大佬,模板消息跳转小程序不能打开指定页面,只能到首页是啥问题呢

[{"_id":"66ce13ada14080c01c017e1d","body":"usePath\u9ed8\u8ba4\u4e3afalse\uff0c\u4f60\u4e3a\u5565\u8981\u8bbe\u7f6e\u4e3atrue","issue_id":1709829992180,"origin_id":1451172171,"user_origin_id":1343140,"create_time":1677723307,"update_time":1677723307,"id":1724781485169,"updated_at":"2024-08-27T17:58:05.169000Z","created_at":"2024-08-27T17:58:05.169000Z"},{"_id":"66ce13ada14080c01c017e1e","body":" \"miniprogram\":{\r\n \"appid\":\"xiaochengxuappid12345\",\r\n \"pagepath\":\"index?foo=bar\"\r\n },","issue_id":1709829992180,"origin_id":1451174337,"user_origin_id":1343140,"create_time":1677723513,"update_time":1677723513,"id":1724781485173,"updated_at":"2024-08-27T17:58:05.173000Z","created_at":"2024-08-27T17:58:05.173000Z"}] comment

![image](https://user-images.githubusercontent.com/104643678/222296303-af009145-8357-4365-b7c7-fccb4a19c507.png) ![image](https://user-images.githubusercontent.com/104643678/222296356-f1a5de7f-b75f-488c-b748-c09a8312bd89.png)

大佬,怎么发送图文消息呢

[{"_id":"66ce13bd5a1d13a44707f332","body":"wxjava\u7684wiki\u91cc\u5e94\u8be5\u662f\u6709\u8bf4\u660e\u7684","issue_id":1709829992185,"origin_id":1410195441,"user_origin_id":1343140,"create_time":1675164736,"update_time":1675164736,"id":1724781501483,"updated_at":"2024-08-27T17:58:21.482000Z","created_at":"2024-08-27T17:58:21.482000Z"}] comment

不可以使用微信小程序的用户的openId来进行推送是吗

[{"_id":"66ce13d05a1d13a44707f333","body":"\u8fd9\u4e2a\u9879\u76ee\u662fmp\uff0c\u4e5f\u5c31\u662f\u516c\u4f17\u53f7\u7684\uff0c\u5c0f\u7a0b\u5e8f\u8bf7\u4f7f\u7528\u53e6\u5916\u4e00\u4e2ademo\u9879\u76ee","issue_id":1709829992189,"origin_id":1355945268,"user_origin_id":1343140,"create_time":1671241227,"update_time":1671241227,"id":1724781520882,"updated_at":"2024-08-27T17:58:40.882000Z","created_at":"2024-08-27T17:58:40.882000Z"}] comment

hello,你好。由于今天项目进行了迁移,新的小程序和公众号还没有绑定微信开放平台。发现使用微信的https://api.weixin.qq.com/sns/jscode2session接口获取不到unionId,后来找资料发现是因为没有绑定微信开放平台导致的。于是使用这个接口返回的 openId 为参数调用 `me.chanjar.weixin.mp.api.impl.WxMpTemplateMsgServiceImpl#sendTemplateMsg`像用户进行消息推送 出现了 40003,说我的openId不正确。 所以我想知道我们这个框架是不是只能用微信公众号中的用户openId,而不能使用小程序的用户openId是吗?

我们公司用的frp方式方向代理本地的服务器,因为微信公众号ip黑名单的原因,要弄代理,所以要修改一下请求地址

rt [微信公众号]本问题与技术无关哈,不知道大家知道如果使用接口发布草稿,再使用平台进行发表,文章会被限流吗