吴昊天 пре 2 година
родитељ
комит
618f56d1fc

+ 1 - 1
crmeb/app/adminapi/AdminApiExceptionHandle.php

@@ -84,7 +84,7 @@ class AdminApiExceptionHandle extends Handle
             'trace' => $e->getTrace(),
             'previous' => $e->getPrevious(),
         ] : [];
-        $message = Env::get('app_debug', false) ? $e->getMessage() : '很抱歉,系统开小差了';
+        $message = $e->getMessage();
         // 添加自定义异常处理机制
         if ($e instanceof AuthException || $e instanceof AdminException || $e instanceof ApiException || $e instanceof ValidateException) {
             return app('json')->make($e->getCode() ?: 400, $message, $massageData);

+ 1 - 1
crmeb/app/api/ApiExceptionHandle.php

@@ -85,7 +85,7 @@ class ApiExceptionHandle extends Handle
             'trace' => $e->getTrace(),
             'previous' => $e->getPrevious(),
         ] : [];
-        $message = Env::get('app_debug', false) ? $e->getMessage() : '很抱歉,系统开小差了';
+        $message = $e->getMessage();
         // 添加自定义异常处理机制
         if ($e instanceof ApiStatusException) {
             return app('json')->status($e->getApiStatus(), $message, $e->getApiData());

+ 1 - 1
crmeb/app/kefuapi/KefuApiExceptionHandle.php

@@ -84,7 +84,7 @@ class KefuApiExceptionHandle extends Handle
             'trace' => $e->getTrace(),
             'previous' => $e->getPrevious(),
         ] : [];
-        $message = Env::get('app_debug', false) ? $e->getMessage() : '很抱歉,系统开小差了';
+        $message = $e->getMessage();
         // 添加自定义异常处理机制
         if ($e instanceof AuthException || $e instanceof AdminException || $e instanceof ApiException || $e instanceof ValidateException) {
             return app('json')->make($e->getCode() ?: 400, $message, $massageData);

+ 1 - 1
crmeb/app/outapi/OutApiExceptionHandle.php

@@ -84,7 +84,7 @@ class OutApiExceptionHandle extends Handle
             'trace' => $e->getTrace(),
             'previous' => $e->getPrevious(),
         ] : [];
-        $message = Env::get('app_debug', false) ? $e->getMessage() : '很抱歉,系统开小差了';
+        $message = $e->getMessage();
         // 添加自定义异常处理机制
         if ($e instanceof AuthException || $e instanceof AdminException || $e instanceof ApiException || $e instanceof ValidateException) {
             return app('json')->make($e->getCode() ?: 400, $message, $massageData);