fix:更新已知bug,优化代码
This commit is contained in:
@@ -20,7 +20,7 @@ class ArrayParser implements ParserInterface
|
||||
throw new InvalidResponseException(Exception::RESPONSE_NONE);
|
||||
}
|
||||
|
||||
$contents = $response->getBody()->getContents();
|
||||
$contents = (string) $response->getBody();
|
||||
|
||||
$result = json_decode($contents, true);
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ use Yansongda\Supports\Collection;
|
||||
class CollectionParser implements ParserInterface
|
||||
{
|
||||
/**
|
||||
* @throws \Yansongda\Pay\Exception\ContainerDependencyException
|
||||
* @throws \Yansongda\Pay\Exception\ContainerException
|
||||
* @throws \Yansongda\Pay\Exception\ServiceNotFoundException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user