服务指令:类别、类型删除默认图片
This commit is contained in:
parent
2680cdc789
commit
b58270f2bf
|
|
@ -79,9 +79,6 @@ public class NuConfigServiceCategory implements Serializable {
|
|||
/**网络标记,0为用pad本地静态图片,1为用网络图*/
|
||||
@ApiModelProperty(value = "网络标记")
|
||||
private java.lang.String netFlag;
|
||||
/**默认图片*/
|
||||
@ApiModelProperty(value = "默认图片")
|
||||
private java.lang.String staticPath;
|
||||
/**动画图片*/
|
||||
@ApiModelProperty(value = "动画图片")
|
||||
private java.lang.String animationPath;
|
||||
|
|
|
|||
|
|
@ -80,9 +80,6 @@ public class NuConfigServiceType implements Serializable {
|
|||
/**网络标记,0为用pad本地静态图片,1为用网络图*/
|
||||
@ApiModelProperty(value = "网络标记")
|
||||
private java.lang.String netFlag;
|
||||
/**默认图片*/
|
||||
@ApiModelProperty(value = "默认图片")
|
||||
private java.lang.String staticPath;
|
||||
/**动画图片*/
|
||||
@ApiModelProperty(value = "动画图片")
|
||||
private java.lang.String animationPath;
|
||||
|
|
|
|||
|
|
@ -103,12 +103,8 @@ public class NuConfigServiceCategoryServiceImpl extends ServiceImpl<NuConfigServ
|
|||
wllxMap.put("title",par.getTypeName());
|
||||
wllxMap.put("netFlag",par.getNetFlag());
|
||||
List<String> imagePaths = new ArrayList<>();
|
||||
if(par.getStaticPath()!=null){
|
||||
String staticPath = getImageNetUrl(par.getStaticPath());
|
||||
imagePaths.add(staticPath);
|
||||
}
|
||||
if(par.getAnimationPath()!=null){
|
||||
getImageNetUrls(imagePaths,par.getAnimationPath());
|
||||
imagePaths = getImageNetUrls(par.getAnimationPath());
|
||||
}
|
||||
wllxMap.put("animationPath",imagePaths);
|
||||
wllxMap.put("levle","2");
|
||||
|
|
@ -134,12 +130,8 @@ public class NuConfigServiceCategoryServiceImpl extends ServiceImpl<NuConfigServ
|
|||
infoMap.put("title",par.getCategoryName().substring(0,2));
|
||||
infoMap.put("netFlag",par.getNetFlag());
|
||||
List<String> imagePaths = new ArrayList<>();
|
||||
if(par.getStaticPath()!=null){
|
||||
String staticPath = getImageNetUrl(par.getStaticPath());
|
||||
imagePaths.add(staticPath);
|
||||
}
|
||||
if(par.getAnimationPath()!=null){
|
||||
getImageNetUrls(imagePaths,par.getAnimationPath());
|
||||
imagePaths = getImageNetUrls(par.getAnimationPath());
|
||||
}
|
||||
infoMap.put("animationPath",imagePaths);
|
||||
infoMap.put("levle","1");
|
||||
|
|
@ -175,7 +167,8 @@ public class NuConfigServiceCategoryServiceImpl extends ServiceImpl<NuConfigServ
|
|||
return netUrl;
|
||||
}
|
||||
|
||||
private List<String> getImageNetUrls(List<String> imagePaths,String imageUrl){
|
||||
private List<String> getImageNetUrls(String imageUrl){
|
||||
List<String> imagePaths = new ArrayList<>();
|
||||
String configValue = getOpeMediaAddress();
|
||||
if(!configValue.equals("")){
|
||||
String[] urls = imageUrl.split(",");
|
||||
|
|
|
|||
|
|
@ -84,9 +84,6 @@ public class ConfigServiceCategory implements Serializable {
|
|||
/**网络标记,0为用pad本地静态图片,1为用网络图*/
|
||||
@ApiModelProperty(value = "网络标记")
|
||||
private java.lang.String netFlag;
|
||||
/**默认图片*/
|
||||
@ApiModelProperty(value = "默认图片")
|
||||
private java.lang.String staticPath;
|
||||
/**动画图片*/
|
||||
@ApiModelProperty(value = "动画图片")
|
||||
private java.lang.String animationPath;
|
||||
|
|
|
|||
Loading…
Reference in New Issue