fix:更新已知bug,优化代码

This commit is contained in:
Ying
2022-11-28 19:11:12 +08:00
parent f6aee95cfc
commit 9445b206a2
1378 changed files with 53759 additions and 20789 deletions

View File

@@ -5,12 +5,11 @@ declare(strict_types=1);
namespace Yansongda\Pay;
use JsonSerializable as JsonSerializableInterface;
use Serializable as SerializableInterface;
use Yansongda\Supports\Traits\Accessable;
use Yansongda\Supports\Traits\Arrayable;
use Yansongda\Supports\Traits\Serializable;
class Request extends \GuzzleHttp\Psr7\Request implements JsonSerializableInterface, SerializableInterface
class Request extends \GuzzleHttp\Psr7\Request implements JsonSerializableInterface
{
use Accessable;
use Arrayable;
@@ -22,7 +21,7 @@ class Request extends \GuzzleHttp\Psr7\Request implements JsonSerializableInterf
'url' => $this->getUri()->__toString(),
'method' => $this->getMethod(),
'headers' => $this->getHeaders(),
'body' => $this->getBody()->getContents(),
'body' => (string) $this->getBody(),
];
}
}