Selaa lähdekoodia

feature 代码提交

xiahan 8 kuukautta sitten
vanhempi
commit
5ebe6ea9b0

+ 7 - 3
jsglkh-common/src/main/java/com/rongwei/bscommon/sys/utils/AttendanceAssessmentSdk.java

@@ -131,10 +131,14 @@ public class AttendanceAssessmentSdk {
                 default:
                     break;
             }
-        } catch (Exception e) {
+        } catch (cn.hutool.core.io.IORuntimeException ioRuntimeException) {
+            throw new CustomException("接口请求超时");
+        } catch (CustomException e) {
             e.printStackTrace();
-            logger.error("接口调用异常", e.getMessage());
-            apiResult = "接口调用异常:" + e.getMessage();
+        } catch (Exception exception) {
+            exception.printStackTrace();
+            logger.error("接口调用异常", exception.getMessage());
+            apiResult = "接口调用异常:" + exception.getMessage();
         } finally {
             // 接口调用结束后续逻辑处理
             String finalApiResult = apiResult;