|
@@ -16,7 +16,6 @@ import com.ruoyi.interfaces.mapper.PtServiceParamMapper;
|
|
|
import com.ruoyi.interfaces.service.IMdModelInfoService;
|
|
import com.ruoyi.interfaces.service.IMdModelInfoService;
|
|
|
import com.ruoyi.interfaces.service.PtServiceService;
|
|
import com.ruoyi.interfaces.service.PtServiceService;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -115,12 +114,13 @@ public class PtServiceServiceImpl extends ServiceImpl<PtServiceMapper, PtService
|
|
|
@Override
|
|
@Override
|
|
|
public MdModelInfoVo modelService(MdModelInfoVo par) {
|
|
public MdModelInfoVo modelService(MdModelInfoVo par) {
|
|
|
MdModelInfoVo mdModelInfoVo = ptServiceMapper.selectModelService(par);
|
|
MdModelInfoVo mdModelInfoVo = ptServiceMapper.selectModelService(par);
|
|
|
- mdModelInfoVo.getServiceList().forEach(p -> {
|
|
|
|
|
- p.setDevelopContacter(sm4Util.decrypt(p.getDevelopContacter()));
|
|
|
|
|
- p.setMaintainContacer(sm4Util.decrypt(p.getMaintainContacer()));
|
|
|
|
|
- p.setAdName(sm4Util.decrypt(p.getAdName()));
|
|
|
|
|
|
|
+ if (StringUtils.isNotNull(mdModelInfoVo) && StringUtils.isNotEmpty(mdModelInfoVo.getServiceList()))
|
|
|
|
|
+ mdModelInfoVo.getServiceList().forEach(p -> {
|
|
|
|
|
+ p.setDevelopContacter(sm4Util.decrypt(p.getDevelopContacter()));
|
|
|
|
|
+ p.setMaintainContacer(sm4Util.decrypt(p.getMaintainContacer()));
|
|
|
|
|
+ p.setAdName(sm4Util.decrypt(p.getAdName()));
|
|
|
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
return mdModelInfoVo;
|
|
return mdModelInfoVo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -145,6 +145,7 @@ public class PtServiceServiceImpl extends ServiceImpl<PtServiceMapper, PtService
|
|
|
public HashMap<String, String> testRun(PtService ptService) throws IOException {
|
|
public HashMap<String, String> testRun(PtService ptService) throws IOException {
|
|
|
|
|
|
|
|
String url = RuoYiConfig.getGatewayUrl() + ptService.getProxyPath() + ptService.getUrl();
|
|
String url = RuoYiConfig.getGatewayUrl() + ptService.getProxyPath() + ptService.getUrl();
|
|
|
|
|
+ System.out.println(url);
|
|
|
//String url = ptService.getUrl();
|
|
//String url = ptService.getUrl();
|
|
|
HashMap<String, String> headers = new HashMap<>();
|
|
HashMap<String, String> headers = new HashMap<>();
|
|
|
List<PtServiceParam> params = ptService.getParams();
|
|
List<PtServiceParam> params = ptService.getParams();
|