init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
27
addons/epay/library/v3/Yansongda/Pay/Request.php
Normal file
27
addons/epay/library/v3/Yansongda/Pay/Request.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay;
|
||||
|
||||
use JsonSerializable as JsonSerializableInterface;
|
||||
use Yansongda\Supports\Traits\Accessable;
|
||||
use Yansongda\Supports\Traits\Arrayable;
|
||||
use Yansongda\Supports\Traits\Serializable;
|
||||
|
||||
class Request extends \GuzzleHttp\Psr7\Request implements JsonSerializableInterface
|
||||
{
|
||||
use Accessable;
|
||||
use Arrayable;
|
||||
use Serializable;
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
return [
|
||||
'url' => $this->getUri()->__toString(),
|
||||
'method' => $this->getMethod(),
|
||||
'headers' => $this->getHeaders(),
|
||||
'body' => (string) $this->getBody(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user