Browse Source

修改服务功能bug

dev-lhz
chenzhihang 1 year ago
parent
commit
d7e9bbdbef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ServiceServiceImpl.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ServiceServiceImpl.java View File

@@ -245,7 +245,7 @@ public class ServiceServiceImpl implements ServiceService {
HashMap<String, Object> updateMap = new HashMap<>(); HashMap<String, Object> updateMap = new HashMap<>();
updateMap.put("replicas", serviceVersion.getReplicas()); updateMap.put("replicas", serviceVersion.getReplicas());
updateMap.put("resource", serviceVersion.getResource()); updateMap.put("resource", serviceVersion.getResource());
paramMap.put("update_model", JSON.toJSONString(updateMap));
paramMap.put("update_model", new JSONObject(updateMap));
String req = HttpUtils.sendPost(argoUrl + modelService + "/update", JSON.toJSONString(paramMap)); String req = HttpUtils.sendPost(argoUrl + modelService + "/update", JSON.toJSONString(paramMap));
if (StringUtils.isNotEmpty(req)) { if (StringUtils.isNotEmpty(req)) {
return "修改成功"; return "修改成功";


Loading…
Cancel
Save