红包发放成功 调用 红包查询异常
现在也是可以发成功 (能发放证书应该是没问题) 请求查询异常
请求查询接口
v3/transfer/batches/out-batch-no/zy206981320241109154448446970
11月7号之前 还正常的 代码和配置都没动过 忽然不能正常查询了
异常信息: 检查红包发放异常
Cannot found the serial(`175601828B7A9C141CED46B3690B4C8BDE2287B0`)'s configuration, which's from the response(header:Wechatpay-Serial), your's 2EFF1AE6B87E6D99B7784C7596F433E39931BE34.[/www/wwwroot/oxxxx/vendor/wechatpay/wechatpay/src/ClientJsonTrait.php] in 124
环境:
php 7.4.3
hyperf 2.1
wechatpay/wechatpay "1.4.8"
[
{
"file": "/www/wwwroot/oxxxx/vendor/wechatpay/wechatpay/src/ClientJsonTrait.php",
"line": 188,
"function": "WeChatPay\{closure}",
"class": "WeChatPay\ClientDecorator",
"type": "::"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 204,
"function": "WeChatPay\{closure}",
"class": "WeChatPay\ClientDecorator",
"type": "::"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 153,
"function": "callHandler",
"class": "GuzzleHttp\Promise\Promise",
"type": "::"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/TaskQueue.php",
"line": 48,
"function": "GuzzleHttp\Promise\{closure}",
"class": "GuzzleHttp\Promise\Promise",
"type": "::"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 248,
"function": "run",
"class": "GuzzleHttp\Promise\TaskQueue",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 224,
"function": "invokeWaitFn",
"class": "GuzzleHttp\Promise\Promise",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 269,
"function": "waitIfPending",
"class": "GuzzleHttp\Promise\Promise",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 226,
"function": "invokeWaitList",
"class": "GuzzleHttp\Promise\Promise",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/guzzlehttp/promises/src/Promise.php",
"line": 62,
"function": "waitIfPending",
"class": "GuzzleHttp\Promise\Promise",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/runtime/container/proxy/GuzzleHttp_Client.proxy.php",
"line": 173,
"function": "wait",
"class": "GuzzleHttp\Promise\Promise",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/wechatpay/wechatpay/src/ClientDecorator.php",
"line": 138,
"function": "request",
"class": "GuzzleHttp\Client",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/wechatpay/wechatpay/src/BuilderTrait.php",
"line": 29,
"function": "request",
"class": "WeChatPay\ClientDecorator",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/runtime/container/proxy/App_Kernel_Bonus_BonusSendBusinessBuilder.proxy.php",
"line": 225,
"function": "get",
"class": "class@anonymous/www/wwwroot/oxxxx/vendor/wechatpay/wechatpay/src/Builder.php:43$77d",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/app/Job/Bonus/CheckBusinessBonusApplysJob.php",
"line": 46,
"function": "checkSendBonusExec",
"class": "App\Kernel\Bonus\BonusSendBusinessBuilder",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/hyperf/async-queue/src/Driver/Driver.php",
"line": 124,
"function": "handle",
"class": "App\Job\Bonus\CheckBusinessBonusApplysJob",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/hyperf/utils/src/Coroutine/Concurrent.php",
"line": 75,
"function": "Hyperf\AsyncQueue\Driver\{closure}",
"class": "Hyperf\AsyncQueue\Driver\Driver",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/hyperf/utils/src/Functions.php",
"line": 271,
"function": "Hyperf\Utils\Coroutine\{closure}",
"class": "Hyperf\Utils\Coroutine\Concurrent",
"type": "->"
},
{
"file": "/www/wwwroot/oxxxx/vendor/hyperf/utils/src/Coroutine.php",
"line": 62,
"function": "call"
}
]
下载平台证书
执行如下命令:
bash
composer exec CertificateDownloader.php -- \ -k APIv3KeyString \ -m merchantId \ -s merchantCertificateSerial \ -f /path/to/merchant/apiclient_key.pem \ -o .
提供正确的
APIv3密钥
、商户号
、商户API证书序列号
、商户API私钥文件地址
,执行后,屏幕输出样例./wechatpay_7132D72A03E93CDDF8C03BBD1F37EEDF********.pem
即为微信支付平台证书
文件。重要提示
当下载证书后,屏显有几条证书信息,就在应用中配置certs几条,尤其是在新旧平台证书交替灰度时,需要把新旧证书都配上,应用才不会出现事故。
谢邀,阅读这里 https://wechatpay.im/guide/getting-started#cli
看起来应该是平台证书过期了