From e0916aa2e78266fb12da41d75bf7aab701bbf3d0 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期三, 23 七月 2025 14:56:07 +0800 Subject: [PATCH] 修改bug --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java index f99a18d..c49c6a6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java @@ -329,7 +329,9 @@ if (null == companyInfo || companyInfo.getIsDelete() != 0) { throw new ServiceException("公司不存在"); } - JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); + String link = companyInfo.getLink(); + String[] split = link.split("="); + JSONObject jsonObject=getReport(split[split.length-1]); // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); if (!"1001".equals(jsonObject.getString("code"))){ return R.fail(jsonObject.get("msg")); @@ -357,7 +359,9 @@ if (null == companyInfo || companyInfo.getIsDelete() != 0) { throw new ServiceException("公司不存在"); } - JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); + String link = companyInfo.getLink(); + String[] split = link.split("="); + JSONObject jsonObject=getReport(split[split.length-1]); // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); if (!"1001".equals(jsonObject.getString("code"))){ return R.fail(jsonObject.get("msg")); @@ -458,7 +462,9 @@ if (null == companyInfo || companyInfo.getIsDelete() != 0) { throw new ServiceException("公司不存在"); } - JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); + String link = companyInfo.getLink(); + String[] split = link.split("="); + JSONObject jsonObject=getReport(split[split.length-1]); // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); if (!"1001".equals(jsonObject.getString("code"))){ return R.fail(jsonObject.get("msg")); -- Gitblit v1.7.1