vendor/codeages/omnipay-alipay/src/Requests/LegacyNotifyRequest.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace Omnipay\Alipay\Requests;

use Omnipay\Alipay\Common\Signer;
use Omnipay\Alipay\Responses\LegacyNotifyResponse;
use Omnipay\Alipay\Responses\VerifyNotifyIdResponse;
use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\Message\ResponseInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
class LegacyNotifyRequest extends \Omnipay\Alipay\Requests\AbstractLegacyRequest
{
    /**
     * @var ParameterBag
     */
    public $params;
    protected $verifyNotifyId = true;
    protected $sort = true;
    /**
     * Get the raw data array for this message. The format of this varies from gateway to
     * gateway, but will usually be either an associative array, or a SimpleXMLElement.
     * @return mixed
     * @throws InvalidRequestException
     */
    public function getData()
    {
        $this->initParams();
        $this->validateParams();
        return $this->params->all();
    }
    /**
     * @return array|mixed
     */
    private function initParams()
    {
        $params = $this->getParams();
        if (!$params) {
            $params = array_merge($_GET, $_POST);
        }
        $this->params = new \Symfony\Component\HttpFoundation\ParameterBag($params);
        return $params;
    }
    /**
     * @return mixed
     */
    public function getParams()
    {
        return $this->getParameter('params');
    }
    /**
     * @param $value
     *
     * @return $this
     */
    public function setParams($value)
    {
        return $this->setParameter('params', $value);
    }
    public function validateParams()
    {

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。