小车车 3 сар өмнө
parent
commit
3ae166e90e

+ 3 - 2
yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/service/workflow/WorkflowModeServiceImpl.java

@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.iscs.service.workflow;
 
 import cn.hutool.core.lang.Assert;
 import cn.hutool.json.JSON;
+import cn.hutool.json.JSONArray;
 import cn.iocoder.yudao.framework.common.pojo.PageResult;
 import cn.iocoder.yudao.framework.common.util.http.HttpUtils;
 import cn.iocoder.yudao.framework.common.util.io.FileDriveLetterUtils;
@@ -167,8 +168,8 @@ public class WorkflowModeServiceImpl extends ServiceImpl<WorkflowModeMapper, Wor
         }
         // 开始加密
         // 使用 Jackson 库序列化
-        ObjectMapper objectMapper = new ObjectMapper();
-        String jsonStr = objectMapper.writeValueAsString(modeExportVOS); // List自动转为数组
+        JSONArray jsonArray = new JSONArray(modeExportVOS);
+        String jsonStr = jsonArray.toString();
         byte[] dataBytes = jsonStr.getBytes(StandardCharsets.UTF_8); // 转为字节数组准备加密
         String s = AES256Utils.AES256DECRYPT(dataBytes);
         // 时间戳