改名
This commit is contained in:
@@ -113,9 +113,9 @@ class HttpParams
|
|||||||
}
|
}
|
||||||
$context_type = $contextType->headers->getContentType();
|
$context_type = $contextType->headers->getContentType();
|
||||||
if (str_contains($context_type, 'json')) {
|
if (str_contains($context_type, 'json')) {
|
||||||
$this->setPosts(json_decode($content));
|
$this->addPosts(json_decode($content, true));
|
||||||
} else if (str_contains($context_type, 'xml')) {
|
} else if (str_contains($context_type, 'xml')) {
|
||||||
$this->setPosts(Xml::toArray($content));
|
$this->addPosts(Xml::toArray($content));
|
||||||
} else {
|
} else {
|
||||||
$this->_rawContent = $content;
|
$this->_rawContent = $content;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user