This commit is contained in:
2023-03-16 10:17:44 +08:00
parent d19a1271d3
commit 21fe6be452
18 changed files with 297 additions and 132 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ function dump(...$vars)
* @param string $message 返回提示信息
* @return array
*/
function success(array $data = [], int $code = HttpEnumCode::HTTP_SUCCESS, string $message = ""): array
function success(array|string $data = [], int $code = HttpEnumCode::HTTP_SUCCESS, string $message = ""): array
{
if (empty($message)) {
$message = HttpEnumCode::getMessage($code);