超算接入QuantumESPRESSO app

This commit is contained in:
chenpeng0206 2026-03-12 15:18:21 +08:00
parent 0dc8a3598d
commit 0cef233456
1 changed files with 4 additions and 4 deletions

View File

@ -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;