Commit ad714f8e authored by hanson.yao's avatar hanson.yao

cadPro 接口优化

parent c9003773
package com.yonde.cadpro.download.impl;
import com.yonde.cadpro.bean.DxModelFile;
import com.yonde.cadpro.config.CADProConfigPropertiesUtil;
import com.yonde.cadpro.download.ClientModelPathRule;
/**
* 通用part parth rule
*/
public class CommonPathAsConfigRule implements ClientModelPathRule {
private String configPath = "";
public CommonPathAsConfigRule() {
}
@Override
public String getPath() throws Exception {
configPath = CADProConfigPropertiesUtil.getDownloadStorageAsTempClientFoderPath();
configPath = configPath.replace(DxModelFile.PATH_SPLIT, DxModelFile.PATH_SPLIT_BACK);
if (!configPath.startsWith(DxModelFile.PATH_SPLIT_BACK)) {
configPath = DxModelFile.PATH_SPLIT_BACK + configPath;
}
return configPath;
}
@Override
public boolean applyChild() {
return true;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment