命令行
This commit is contained in:
@@ -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' => []];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user