From 8c15c9cc0d6474ed77e313258f9b09f7f2d6366e Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期三, 17 九月 2025 17:29:47 +0800
Subject: [PATCH] 2025.9.17 1. 新增数据产品接口

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BaseResPack.kt |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BaseResPack.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BaseResPack.kt
index 3cc30f6..08d072d 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BaseResPack.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/BaseResPack.kt
@@ -1,6 +1,6 @@
 package cn.flightfeather.supervision.lightshare.web
 
-import cn.flightfeather.supervision.common.exception.ResponseErrorException
+import cn.flightfeather.supervision.common.exception.BizException
 import cn.flightfeather.supervision.lightshare.vo.BaseResponse
 import cn.flightfeather.supervision.lightshare.vo.DataHead
 
@@ -20,7 +20,11 @@
         } else {
             BaseResponse(true, data = res)
         }
-    } catch (e: ResponseErrorException) {
-        BaseResponse(false, message = e.message ?: "")
+    } catch (e: BizException) {
+        BaseResponse(false, message = e.message ?: "", stackTrace = e.stackTraceToString())
+    } catch (e: Exception) {
+        // fixme: to log system
+
+        BaseResponse(false, message = "鏈嶅姟鍣ㄥ嚭鐜板唴閮ㄩ敊璇�", stackTrace =  e.stackTraceToString())
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3