Commit b6c6206f by feixiang

异常类统一系统异常及用户异常返回数据形式

parent 3c108200
...@@ -33,7 +33,7 @@ class ExceptionData ...@@ -33,7 +33,7 @@ class ExceptionData
$data = [ $data = [
"code" => $e->getCode(), "code" => $e->getCode(),
"msg" => $e->getMessage(), "msg" => $e->getMessage(),
"errCode" => is_callable([$e,'getErrCode'])?$e->getErrcode():'', "errCode" => is_callable([$e,'getErrCode'])?$e->getErrcode():-1,
'path' =>[], 'path' =>[],
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment