直接修改composer包代码也不合理啊
微信支付api,GuzzleHttp报错安装: composer require wechatpay/wechatpay Using version ^1.4 for wechatpay/wechatpay ./composer.json has been updated Running composer update wechatpay/wechatpay Loading composer repositories with package information Updating dependencies Lock file operations: 11 installs, 0 updates, 0 removals - Locking guzzlehttp/guzzle (7.4.1) - Locking guzzlehttp/promises (1.5.1) - Locking guzzlehttp/psr7 (2.1.0) - Locking guzzlehttp/uri-template (v1.0.1) - Locking psr/http-client (1.0.1) - Locking psr/http-factory (1.0.1) - Locking psr/http-message (1.0.1) - Locking ralouphie/getallheaders (3.0.3) - Locking symfony/deprecation-contracts (v2.5.0) - Locking symfony/polyfill-php80 (v1.25.0) - Locking wechatpay/wechatpay (1.4.3) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 11 installs, 0 updates, 0 removals - Installing guzzlehttp/promises (1.5.1): Extracting archive - Installing ralouphie/getallheaders (3.0.3): Extracting archive - Installing psr/http-message (1.0.1): Extracting archive - Installing psr/http-factory (1.0.1): Extracting archive - Installing guzzlehttp/psr7 (2.1.0): Extracting archive - Installing psr/http-client (1.0.1): Extracting archive - Installing symfony/deprecation-contracts (v2.5.0): Extracting archive - Installing symfony/polyfill-php80 (v1.25.0): Extracting archive - Installing guzzlehttp/uri-template (v1.0.1): Extracting archive - Installing guzzlehttp/guzzle (7.4.1): Extracting archive - Installing wechatpay/wechatpay (1.4.3): Extracting archive PHP版本:7.4.28 PHP代码: require '..../classes/vendor/autoload.php'; use WeChatPay\Builder; use WeChatPay\Crypto\Rsa; use WeChatPay\Util\PemUtil; use WeChatPay\Util\MediaUtil; ..... // 构造一个 APIv3 客户端实例 $instance = Builder::factory([ 'mchid' => $merchantId, 'serial' => $merchantCertificateSerial, 'privateKey' => $merchantPrivateKeyInstance, 'certs' => [ $platformCertificateSerial => $platformPublicKeyInstance, ], ]); // 发送请求 $resp = $instance->chain('v3/certificates')->get(); 运行结果: Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET https://api.mch.weixin.qq.com/v3/certificates` resulted in a `401 Unauthorized` response: {"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_ (truncated...) in .../classes/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 .../classes/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL) #1 .../classes/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 .../classes/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL) #3 .../classes/vendor/guzzlehttp/p in .../classes/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113
2023-05-10同问,已经升级了证书,但是子商户创建还是不行
微信支付调用下单 -商户未申请过证书。请到商户平台上申请证书授权机构颁发的证书 怎么解决?商户未申请过证书。请到商户平台上申请证书授权机构颁发的证书 证书也是对的 但是就是不行 {"code":"SIGN_ERROR","message":"商户未申请过证书。请到商户平台上申请证书授权机构颁发的证书。详情可参考:http://kf.qq.com/faq/180824JvUZ3i180824YvMNJj.html。"} [图片]
2023-05-08官方有跟进吗? rid: 63d481e2-16e38159-2bfbded5
公众号模板消息重复发送失败 errcode 40241 ?调用公众号模板消息时返回的错误信息 {"errcode":40241,"errmsg":"The message is duplicate in 60 seconds rid: 6386f1c1-1319d028-3c773611"} 重复发送不成功(第三方模式调用),但是另外一个版本重复发送就可以成功(直接调用),这方面是有什么限制吗?
2023-01-28