minibear2021 / wechatpayv3

微信支付 API v3 Python SDK
MIT License
829 stars 130 forks source link

当电脑时间与北京时间不同步或差了超过5分钟时,运行python examples.py报错 #36

Closed Friedrich-hue closed 10 months ago

Friedrich-hue commented 12 months ago

这是因为下载cert代码模块时,请求返回401,无法下载cert,时间异常,但是没有报错显示,只是单纯无法运行项目

minibear2021 commented 12 months ago

先同步本地时间,所有请求都会带有时间戳,差异过大会被服务器认为是非法请求。