From 0cef2334560ba771d419599ca2c6940159b70ee4 Mon Sep 17 00:00:00 2001 From: chenpeng0206 <123@qq.com> Date: Thu, 12 Mar 2026 15:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=AE=97=E6=8E=A5=E5=85=A5QuantumESPR?= =?UTF-8?q?ESSO=20app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/platform/service/impl/CSCollectServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/CSCollectServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/CSCollectServiceImpl.java index 206a95a0..8f4b9180 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/CSCollectServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/CSCollectServiceImpl.java @@ -428,7 +428,7 @@ public class CSCollectServiceImpl implements CSCollectService { //2.获取需要用到的调度平台 JSONArray hpcAppCluster = getHpcAppCluster(appCode); - binding(userId, packageId, hpcAppCluster); + binding(userId, packageId, hpcAppCluster,token); redisService.setCacheObject(PACKAGE_KEY + appCode, packageId); } return packageId; @@ -446,7 +446,7 @@ public class CSCollectServiceImpl implements CSCollectService { * @param hpcAppCluster * @return */ - private void binding(Integer userId, Integer packageID, JSONArray hpcAppCluster) throws Exception { + private void binding(Integer userId, Integer packageID, JSONArray hpcAppCluster,String token) throws Exception { try { String url = csUrl + "/jsm/jobSet/binding"; @@ -467,8 +467,8 @@ public class CSCollectServiceImpl implements CSCollectService { params.set("userID", userId); params.set("info", info); - String result = HttpUtils.sendPost(url, null, JSONUtil.toJsonStr(params)); - returnResDataWithOK(result); + String res = HttpUtils.sendBodyPostWithToken(url, params, token); + returnResDataWithOK(res); } catch (Exception e) { log.error(e.getMessage(), e); throw e;