From c118bb16fbe10aa24a8ecff4c648426885524860 Mon Sep 17 00:00:00 2001 From: "tanfengling@x-ri.com" <123456> Date: Mon, 20 Oct 2025 18:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8E=A8=E9=80=81=E6=B3=9B=E5=BE=AE?= =?UTF-8?q?=E3=80=91=E5=B7=A5=E5=85=B7=E7=B1=BB=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lc123/cloud/app/plugin/trd/FWImpl.java | 2 +- lc123/cloud/app/plugin/utils/FWRestfulUtils.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lc123/cloud/app/plugin/trd/FWImpl.java b/lc123/cloud/app/plugin/trd/FWImpl.java index 36b8db0..d97bdec 100644 --- a/lc123/cloud/app/plugin/trd/FWImpl.java +++ b/lc123/cloud/app/plugin/trd/FWImpl.java @@ -1523,7 +1523,7 @@ public class FWImpl { for (Map attachment : attachments) { String filePath = (String) attachment.get("url"); String fileName = (String) attachment.get("name"); - filePath = filePath.replace("127.0.0.1:8881", "10.200.30.186:8022"); +// filePath = filePath.replace("127.0.0.1:8881", "10.200.30.186:8022"); byte[] bytes = HttpUtil.downloadBytes(filePath); String str = cn.hutool.core.codec.Base64.encode(bytes); JSONObject fj = new JSONObject(); diff --git a/lc123/cloud/app/plugin/utils/FWRestfulUtils.java b/lc123/cloud/app/plugin/utils/FWRestfulUtils.java index 8659f54..a5722cd 100644 --- a/lc123/cloud/app/plugin/utils/FWRestfulUtils.java +++ b/lc123/cloud/app/plugin/utils/FWRestfulUtils.java @@ -11,6 +11,8 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import kd.bos.dataentity.OperateOption; import kd.bos.dataentity.entity.DynamicObject; +import kd.bos.logging.Log; +import kd.bos.logging.LogFactory; import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.operation.OperationServiceHelper; import org.apache.commons.lang3.StringUtils; @@ -30,6 +32,8 @@ import java.util.*; public class FWRestfulUtils { + private static final Log log = LogFactory.getLog(FWRestfulUtils.class); + private static final String FW_Main_URL = ConfigUtils.getThirdConfigByNumber("FW_Main_URL");//获取泛微接口ip、端口号 private static final String FW_systemid = ConfigUtils.getThirdConfigByNumber("FW_systemid");//获取泛微接口授权用户名、系统标识 private static final String FW_password = ConfigUtils.getThirdConfigByNumber("FW_password");//获取泛微接口授权密码 @@ -46,6 +50,8 @@ public class FWRestfulUtils { String publicKey = rsa.getPublicKeyBase64(); String privateKey = rsa.getPrivateKeyBase64(); + log.info("FW_Main_URL:"+FW_Main_URL); + //调用ECOLOGY系统接口进行注册 http://180.166.208.42:8043/ String data = HttpRequest.post( FW_Main_URL + "api/ec/dev/auth/regist") .header("appid",FW_appid)