改进 一些可能有用的东西
This commit is contained in:
parent
79438111ff
commit
51b8af03fb
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user