微信公众号无法验证成功问题
1.o2oa版本:o2server-7.0.5-windows-x64参考文档:https://www.o2oa.net/course/wirphz.html2.网络链接:http---http与https都试过,公众号都配置不成功。ps:文章中提到的80端口代理的设置参考文档是什么?
3:mpweixin.json 配置(ps:configSample中文件名是mPweixin 两个都试了都不行)
4、公众号配置:token 跟key确认过是对的。
5、token验证失败
查不到什么原因,配置成功的小伙伴们能帮忙看一下吗?
node-xxx.json的配置文件中,web下有一个proxyCenterEnable配置,是否有启用 论坛管理员 发表于 2022-4-20 14:07
node-xxx.json的配置文件中,web下有一个proxyCenterEnable配置,是否有启用
hi,你好,若是开启proxy的话,ssl访问的时候会一只loading。 wantyou365 发表于 2022-4-21 14:44
hi,你好,若是开启proxy的话,ssl访问的时候会一只loading。
https访问不了?证书配置好了吗?
还有验证不通过,你自己先访问下https://你的域名/x_program_center/jaxrs/mpweixin/check 你的这个地址是否通 本帖最后由 wantyou365 于 2022-4-24 10:40 编辑
FancyLou 发表于 2022-4-22 10:52
https访问不了?证书配置好了吗?
还有验证不通过,你自己先访问下https://你的域名/x_program_center/ja ...
hi,你好。
证书已经配置好了。但不开启web的proxyCenterEnable的时候是可以通过https访问。开启之后一直会在首页loading。
开启ssl配置如下:该配置下微信check-token验证失败
"center": {
"enable": true,
"order": 0.0,
"sslEnable": true,
"redeploy": true,
"port": 20030.0,
"httpProtocol": "",
"proxyHost": "",
"proxyPort": 20030.0,
"scanInterval": 0.0,
"configApiEnable": true,
"statEnable": true,
"statExclusions": "*.js,*.gif,*.jpg,*.png,*.css,*.ico",
"maxFormContent": 20.0,
"exposeJest": true,
"requestLogEnable": true,
"requestLogFormat": "",
"requestLogRetainDays": 7.0,
"requestLogBodyEnable": true,
"persistentConnectionsEnable": true,
"###enable": "是否启用###",
"application": {
"enable": true,
"port": 20020.0,
"sslEnable": true,
"proxyHost": "",
"proxyPort": 20020.0,
"redeploy": true,
"scanInterval": 0.0,
"includes": [],
"excludes": [],
"weights": [],
"scheduleWeights": [],
"statEnable": true,
"statExclusions": "*.js,*.gif,*.jpg,*.png,*.css,*.ico",
"maxFormContent": 20.0,
"exposeJest": true,
"maxThread": 500.0,
"requestLogEnable": true,
"requestLogFormat": "",
"requestLogRetainDays": 7.0,
"requestLogBodyEnable": true,
"persistentConnectionsEnable": true,
"###enable": "是否启用###",
"web": {
"enable": true,
"sslEnable": true,
"proxyHost": "",
"weight": 100.0,
"dirAllowed": false,
"statEnable": false,
"statExclusions": "*.gif,*.jpg,*.png,*.ico",
"cacheControlMaxAge": 0.0,
"persistentConnectionsEnable": true,
"requestLogEnable": true,
"requestLogFormat": "",
"requestLogRetainDays": 7.0,
"proxyCenterEnable": true,//false的时候ssl可以正常访问
"proxyApplicationEnable": false,
"###enable": "是否启用###",
不开启ssl配置时,这三项的sslEnable属性设置为false,微信check-url访问超时[/color
补充:在不开启ssl的的配置时,微信check log如下: INFO com.x.program.center.jaxrs.mpweixin.ActionCheckMPWeixin - 微信公众号接收到验证消息,signature:7ee3ee493e0bb00ede274fe252896868d5ebcca4, timestamp:1650766385, nonce:862044087, echostr:2073369535170657851.
INFO com.x.program.center.jaxrs.mpweixin.ActionCheckMPWeixin - 我们的 7ee3ee493e0bb00ede274fe252896868d5ebcca4, 传入的 7ee3ee493e0bb00ede274fe252896868d5ebcca4没有对比成功之类的后续log。
是不是对比报错之类的,没有response?
开启ssl的时候,微信check没有触发log,是不是没访问到?
服务器环境:腾讯的普通vps
wantyou365 发表于 2022-4-24 10:13
hi,你好。
证书已经配置好了。但不开启web的proxyCenterEnable的时候是可以通过https访问。开启之后一直 ...
可能是https下没法用端口代理功能。得找技术研发那边问问,是否能解决这个问题 FancyLou 发表于 2022-4-25 08:39
可能是https下没法用端口代理功能。得找技术研发那边问问,是否能解决这个问题 ...
你好,有办法解决吗?在ssl的时候,是一定要开启代理,微信的设置才有用吗?在ssl的情况下,微信的check应该是没被访问到。 本帖最后由 al_kk 于 2022-8-9 17:56 编辑
这个搞定了木有?我也碰到相同的问题,https好像是启动不了代理问题已解决,把proxyCenterEnable使能后,center服务的sslEnable关掉就可以了,原因是o2oa的代理会把https转成http;同样适用于代理application服务
页:
[1]