收藏
回答

商家转账到零钱接口问题[救救孩子吧~要被骂了]

红包发放成功 调用 红包查询异常

现在也是可以发成功 (能发放证书应该是没问题) 请求查询异常


请求查询接口

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"
    }
]


最后一次编辑于  星期一 15:14
回答关注问题邀请回答
收藏

2 个回答

  • 北望沣渭
    北望沣渭
    星期一 15:13

    下载平台证书

    执行如下命令:

    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

    星期一 15:13
    有用 1
    回复 3
    • 李振东@中源数字|一物一码
      李振东@中源数字|一物一码
      星期一 15:24
      发放能成功 应该不是证书问题吧?
      星期一 15:24
      回复
    • 北望沣渭
      北望沣渭
      星期一 15:31回复李振东@中源数字|一物一码
      主贴的异常翻译过来就是:你配置的证书序列号是2EFF1AE6B87E6D99B7784C7596F433E39931BE34,而响应的序列号是175601828B7A9C141CED46B3690B4C8BDE2287B0,而buildser初始化时的certs是支持多证书的,你没填
      星期一 15:31
      回复
    • 李振东@中源数字|一物一码
      李振东@中源数字|一物一码
      星期一 15:55
      谢谢  开启了灰度证书 已解决 大佬就是厉害 膜拜!!!
      星期一 15:55
      回复
  • Memory (私信不回复)
    Memory (私信不回复)
    星期一 14:56

    看起来应该是平台证书过期了

    星期一 14:56
    有用
    回复 3
登录 后发表内容