vendor/codeages/omnipay-alipay/src/Requests/LegacyRefundRequest.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Omnipay\Alipay\Requests;
use Omnipay\Alipay\Responses\LegacyRefundResponse;
use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\Message\ResponseInterface;
/**
* Class LegacyRefundRequest
* @package Omnipay\Alipay\Requests
* @link https://doc.open.alipay.com/docs/doc.htm?treeId=66&articleId=103600&docType=1
*/
class LegacyRefundRequest extends \Omnipay\Alipay\Requests\AbstractLegacyRequest
{
protected $service = 'refund_fastpay_by_platform_pwd';
/**
* 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->setDefaults();
$this->validate('partner', '_input_charset', 'refund_date', 'batch_no', 'refund_items');
$this->validateOne('seller_user_id', 'seller_email');
$this->setBatchNum(count($this->getRefundItems()));
$this->setRefundDetail($this->getDetailData());
$data = array('service' => $this->service, 'partner' => $this->getPartner(), 'notify_url' => $this->getNotifyUrl(), 'seller_user_id' => $this->getPartner(), 'refund_date' => $this->getRefundDate(), 'batch_no' => $this->getBatchNo(), 'batch_num' => $this->getBatchNum(), 'detail_data' => $this->getDetailData(), '_input_charset' => $this->getInputCharset());
$data['sign'] = $this->sign($data, $this->getSignType());
$data['sign_type'] = $this->getSignType();
return $data;
}
protected function setDefaults()
{
if (!$this->getRefundDate()) {
$this->setRefundDate(date('Y-m-d H:i:s'));
}
if (!$this->getBatchNo()) {
$this->setBatchNo(date('Ymd') . mt_rand(1000, 9999));
}
}
/**
* @return mixed
*/
public function getRefundDate()
{
return $this->getParameter('refund_date');
}
/**
* @param $value
*
* @return $this
*/
public function setRefundDate($value)
{
return $this->setParameter('refund_date', $value);
}
/**
* @return mixed
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。