Authored by zhengyouwei

php list

package com.ui.ctrl;
import com.alibaba.fastjson.JSON;
import com.ui.contants.HttpUriContants;
import com.ui.http.HttpRestClient;
import com.ui.model.BaseResponse;
... ... @@ -92,7 +93,8 @@ public class WorkSystemCtrl {
if (Platform.JAVA.equals(platform)) {
return ProjectOnline.getJavaList();
} else if (Platform.PHP.equals(platform)) {
return ProjectOnline.getPhpList();
String result = httpRestClient.get("http://172.31.16.167:8883/php/getProjects", String.class, null);
return JSON.parseObject(result,List.class);
} else {
return ProjectOnline.getNodeList();
}
... ...