$rocket]); if (!should_do_http_request($rocket->getDirection())) { return $rocket; } $destination = $rocket->getDestination(); if ((!$destination instanceof Collection) || empty($result = $destination->except('_sign')->all())) { throw new InvalidParamsException(Exception::RESPONSE_EMPTY, '参数异常: 支付宝验证签名时待验签参数不正确', $destination); } $config = get_provider_config('alipay', $rocket->getParams()); verify_alipay_sign($config, json_encode($result, JSON_UNESCAPED_UNICODE), $destination->get('_sign', '')); Logger::info('[Alipay][VerifySignaturePlugin] 插件装载完毕', ['rocket' => $rocket]); return $rocket; } }