目前不少开发者在设置业务域名时,发现检查校验文件失败,可先按照如下步骤进行自查:
如果想保存的业务为https://test.com/,下载下来的校验文件为AbC.txt,则需要确保https://test.com/AbC.txt能够访问。
校验文件内容错误。校验文件内容一般是非HTML数据,如果下载下来的校验文件内容为HTML数据,一般为登录态过期。请重新登录小程序下载校验文件。
使用4G网络尝试访问链接,确认自身服务器没有拦截请求(常见于设置了白名单或者防火墙的服务器,需开发者自行确认下)
https证书过期。请确保https证书处于有效期内。
使用curl 测试链接,确保curl能够正常访问链接,且curl出来的内容为校验文件内容。
使用time curl https://test.com/abc.txt查看链接时间,建议耗时在1s之内。
请确保url中的文件名与下载下来的文件名大小写一致。如下载的文件是AbC.txt,确保url是https://test.com/AbC.txt,不能是https://test.com/abc.txt
部分用户的服务器配置较陈旧,安全性差(如配置 768位 的 DH),为了保证通信安全,微信后台不支持,请更新服务器配置。
(1)通过https://cloud.tencent.com/product/tools#userDefined12,检测网址是否支持TLS1.2。
(2)可通过工具 https://www.ssllabs.com/ssltest/analyze.html 检查自己的服务器,对该工具标红的各项漏洞逐项修补,建议更新配置直到该工具打分为 C及以上 。
9. 如上述检查都没有问题,请重新下载校验文件重试,确保上传到服务器的文件内容与新下载的文件内容一致。
@默 我们服务器抓取的内容是一个登录页,并不是对应的字符串内容
curl错误是因为你的ip地址没有加入到我司网络白名单,以至于不能访问这个域名,运维已经把微信服务器ip列表设置为白名单了,麻烦到服务器上curl 。
微信服务器ip地址如下:{"ip_list":["101.226.62.77","101.226.62.78","101.226.62.79","101.226.62.80","101.226.62.81","101.226.62.82","101.226.62.83","101.226.62.84","101.226.62.85","101.226.62.86","101.226.103.59","101.226.103.60","101.226.103.61","101.226.103.62","101.226.103.63","101.226.103.69","101.226.103.70","101.226.103.71","101.226.103.72","101.226.103.73","140.207.54.73","140.207.54.74","140.207.54.75","140.207.54.76","140.207.54.77","140.207.54.78","140.207.54.79","140.207.54.80","182.254.11.203","182.254.11.202","182.254.11.201","182.254.11.200","182.254.11.199","182.254.11.198","59.37.97.100","59.37.97.101","59.37.97.102","59.37.97.103","59.37.97.104","59.37.97.105","59.37.97.106","59.37.97.107","59.37.97.108","59.37.97.109","59.37.97.110","59.37.97.111","59.37.97.112","59.37.97.113","59.37.97.114","59.37.97.115","59.37.97.116","59.37.97.117","59.37.97.118","112.90.78.158","112.90.78.159","112.90.78.160","112.90.78.161","112.90.78.162","112.90.78.163","112.90.78.164","112.90.78.165","112.90.78.166","112.90.78.167","140.207.54.19","140.207.54.76","140.207.54.77","140.207.54.78","140.207.54.79","140.207.54.80","180.163.15.149","180.163.15.151","180.163.15.152","180.163.15.153","180.163.15.154","180.163.15.155","180.163.15.156","180.163.15.157","180.163.15.158","180.163.15.159","180.163.15.160","180.163.15.161","180.163.15.162","180.163.15.163","180.163.15.164","180.163.15.165","180.163.15.166","180.163.15.167","180.163.15.168","180.163.15.169","180.163.15.170","101.226.103.0\/25","101.226.233.128\/25","58.247.206.128\/25","182.254.86.128\/25","103.7.30.21","103.7.30.64\/26","58.251.80.32\/27","183.3.234.32\/27","121.51.130.64\/27"]}
curl 内容错误
域名业务问题:
因测试环境需设置网络白名单,6.2没有自查,其他自查通过,
业务域名:https://xcx-dev-jkt.guahao-test.com 校验文件地址:https://xcx-dev-jkt.guahao-test.com/zD8xTlgAh2.txt
AppID:wxff8b4f36c31cd7d6 操作时间:2018年3月16日16:10
curl是空白的,直接访问会跳到登录页,请自查一下,确保能够正常访问校验文件
验证文件放到根目录了,还是验证失败,好久了,官方给出的那几步都检查过没有问题,好急麻烦给看看。 业务域名:https://webtest.guanyukj.com 校验文件地址:https://webtest.guanyukj.com/QgWIVyURbE.txt
校验文件内容:
AppID:wxc5ae0fb544f1aaef 操作时间:2018年3月15日14:24 麻烦处理一下
微信公共平台中的业务域名已经添加 较验文件已经添加 但是在小程序链接域名时 打开无任何的反应 就是什么情况 呢?
后台查看校验文件内容不应该是这个,请重新登录小程序下载校验文件。
@好久不见 curl出来的内容并不是校验文件内容,请按照上述步骤仔细自查。
验证文件放到根目录了,还是验证失败,好久了,官方给出的那几步都检查过没有问题,好急麻烦给看看。 业务域名:https://sci.medroad.cn 校验文件地址:https://sci.medroad.cn/IZ4rc3pEwa.txt
校验文件内容:14a2451bd1cfcaa3671ead76e44677a0
AppID:wxaef6d8489a3a76e3 操作时间:2018年3月14日15:43