原因:app_secret填错了 上图的api_key是微信商户平台的api_key,之前写成微信公众号的api_secret了 设置微信商户平台的api_key: 微信商户平台–>账户设置–>API安全–>API秘钥–>设置秘钥