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

(开头部分) 1KB

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

<?php

namespace Omnipay\Alipay\Requests;

use Omnipay\Alipay\Common\Signer;
use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\Message\AbstractRequest;
abstract class AbstractAopRequest extends \Omnipay\Common\Message\AbstractRequest
{
    protected $method;
    protected $privateKey;
    protected $encryptKey;
    protected $alipayPublicKey;
    protected $endpoint = 'https://openapi.alipay.com/gateway.do';
    protected $returnable = false;
    protected $notifiable = false;
    /**
     * 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
     */
    public function getData()
    {
        $this->validateParams();
        $this->setDefaults();
        $this->convertToString();
        $data = $this->parameters->all();
        $data['method'] = $this->method;
        ksort($data);
        $data['sign'] = $this->sign($data, $this->getSignType());
        return $data;
    }
    public function validateParams()
    {
        $this->validate('app_id', 'format', 'charset', 'sign_type', 'timestamp', 'version', 'biz_content');
    }
    protected function setDefaults()
    {
        if (!$this->getTimestamp()) {
            $this->setTimestamp(date('Y-m-d H:i:s'));
        }
    }
    /**
     * @return mixed
     */
    public function getTimestamp()
    {
        return $this->getParameter('timestamp');
    }
    /**
     * @param $value
     *
     * @return $this
     */
    public function setTimestamp($value)
    {
        return $this->setParameter('timestamp', $value);
    }
    protected function convertToString()

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

AI 解读 AI

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

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