Skip to content

Commit 6e649c9

Browse files
zds-sassert6
andauthored
Fixed bug that inconsistent parsing response in Rpc-Multiplex client. (#6500)
Co-authored-by: assert <z@hyperf.io>
1 parent a86f5f9 commit 6e649c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DataFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function formatErrorResponse(ErrorResponse $response): array
7272

7373
public function fetch(array $data): mixed
7474
{
75-
if (array_key_exists(Constant::DATA, $data)) {
75+
if (array_key_exists(Constant::RESULT, $data)) {
7676
$this->context->setData($data[Constant::CONTEXT] ?? []);
7777

78-
return $data[Constant::DATA];
78+
return $data[Constant::RESULT];
7979
}
8080

8181
if (array_key_exists(Constant::ERROR, $data)) {

0 commit comments

Comments
 (0)