我们公司一般做开发都是先用测试机的接口调试功能,等功能都调试的差不多了,再换成线上的正式接口,因为正式接口要验证签名。
这几个功能都调试的差不多了,准备换成线上正式接口了,结果却出了问题,提示请求超时。。。
然后百度了一些相关问题,发现有说签名算法不对的,有说服务器SSL配置问题的,等等。。。
签名、时间戳、key都用的通用的代码,不可能有问题。
问后台程序员,接口代码也是以前一样的标准,都没改变。
然后他把验证时间加长,我这里就正常了。。
难道时间会差30秒?
随即打开百度,查看标准时间,发现我机器上的时间竟然比标准时间慢了将近1分钟。
擦,瞬间凌乱了。纠结了一天的问题终于找到原因了。。
留此踩坑记录为提醒自己和其他小伙伴。