|
|
|
@@ -245,7 +245,7 @@ public class ServiceServiceImpl implements ServiceService { |
|
|
|
HashMap<String, Object> updateMap = new HashMap<>(); |
|
|
|
updateMap.put("replicas", serviceVersion.getReplicas()); |
|
|
|
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)); |
|
|
|
if (StringUtils.isNotEmpty(req)) { |
|
|
|
return "修改成功"; |
|
|
|
|