|
|
@@ -27,7 +27,7 @@ class NotifyService
|
|
|
$nonce = $headers['Wechatpay-Nonce'] ?? ''; // 请根据实际情况获取
|
|
|
|
|
|
$apiv3Key = $this->config->api_v3_key;
|
|
|
- $platformPublicKeyInstance = $this->config->platform_cert;
|
|
|
+ $platformPublicKeyInstance = str_starts_with($serial,'PUB_KEY_ID_')?$this->config->public_key:$this->config->platform_cert;
|
|
|
|
|
|
$timeOffsetStatus = 300 >= abs(Formatter::timestamp() - (int)$timestamp);
|
|
|
if (!$timeOffsetStatus) {
|