改进 一些可能有用的东西

This commit is contained in:
iVampireSP.com 2022-11-25 19:00:58 +08:00
parent 79438111ff
commit 51b8af03fb
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -26,7 +26,7 @@ public function moduleResponse($response, int $status = 200): JsonResponse
429 => $this->tooManyRequests(),
500 => $this->serverError(),
default => response()->json($response['data'], $status),
default => response()->json($response['data'] ?? $response, $status),
};
}