命令行

This commit is contained in:
2025-08-15 10:28:58 +08:00
parent ca0bf11b55
commit d1bbbab7c3
5 changed files with 18 additions and 17 deletions

View File

@@ -540,9 +540,9 @@ if (!function_exists('p')) {
if (!function_exists('returnErrorData')) {
function returnErrorData($msg)
function returnErrorData($msg, $code = -1)
{
return ['code' => -1, 'message' => $msg, 'data' => []];
return ['code' => $code, 'message' => $msg, 'msg' => $msg, 'data' => []];
}
}