|
|
@@ -155,6 +155,8 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
|
|
foreach ($errorOutline as $item) {
|
|
|
if (false !== strpos($exception->getMessage(), $item)) {
|
|
|
$it = [
|
|
|
+ 'stance' => 4,
|
|
|
+ 'brand' => in_array($item, ['AR_', 'SQLSTATE']) ? 'SQL' : 'API',
|
|
|
'name' => ($exception instanceof Exception || $exception instanceof ErrorException) ? $exception->getName() : 'Exception',
|
|
|
'message' => '(NG)提醒:' . $exception->getMessage(),
|
|
|
'code' => $exception->getCode(),
|