yuemian 2024-09-04 11:04:24 +08:00
parent 37b7a682fe
commit bd2026a49f
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ public class TianyiPhysicalProvider extends TianyiProvider {
jsonObject.put("cycleType", model.getName());
jsonObject.put("orderCount", model.getOrderCount());
Result result = doPost(apiUrl, jsonObject);
log.info("物理机创建结果:" + JSON.toJSONString(result));
JSONObject returnObj = checkResult(result, "创建物理机");
List<JSONObject> resources = returnObj.getJSONArray("resources").toJavaList(JSONObject.class);
if (CollectionUtils.isEmpty(resources)) {