改名
This commit is contained in:
+1
-2
@@ -94,8 +94,7 @@ class Service extends Component
|
|||||||
*/
|
*/
|
||||||
public static function replace(Request $request, array $service): Request
|
public static function replace(Request $request, array $service): Request
|
||||||
{
|
{
|
||||||
$body = $request->params->getBodyAndClear();
|
if (!is_array($body = $request->params->getBodyAndClear())) {
|
||||||
if (is_null($serialize = Json::decode($body))) {
|
|
||||||
throw new Exception('Protocol format error.');
|
throw new Exception('Protocol format error.');
|
||||||
}
|
}
|
||||||
if (!isset($serialize['cmd'])) {
|
if (!isset($serialize['cmd'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user