Browse Source

默认图片

chao 4 years ago
parent
commit
12df55e4f6

+ 7 - 7
product/src/main/java/com/caimei/module/product/util/ProductUtils.java

@@ -58,17 +58,17 @@ public class ProductUtils {
 			String tmp = src;
 			String tmp = src;
 			src = tmp.substring(0, tmp.indexOf(","));
 			src = tmp.substring(0, tmp.indexOf(","));
 		}
 		}
-		String image = "/public/3.0/img/default/none.jpg";
+		String image = "/img/default/none.jpg";
 		if (dirName.equals("user")) {
 		if (dirName.equals("user")) {
-			image = "/public/3.0/img/default/HeaderImg.png";
+			image = "/img/default/HeaderImg.png";
 		} else if (dirName.equals("club")) {
 		} else if (dirName.equals("club")) {
-			image = "/public/3.0/img/default/default_club.jpg";
+			image = "/img/default/default_club.jpg";
 		} else if (dirName.equals("shopLogo")) {
 		} else if (dirName.equals("shopLogo")) {
-			image = "/public/3.0/img/default/suppliver.jpg";
+			image = "/img/default/suppliver.jpg";
 		}else if (dirName.equals("caiMeiImage")) {
 		}else if (dirName.equals("caiMeiImage")) {
-			image = "/public/3.0/img/default/caiMeiImage.jpg";
+			image = "/img/default/caiMeiImage.jpg";
 		}else {
 		}else {
-			image = "/public/3.0/img/default/none.jpg";
+			image = "/img/default/none.jpg";
 		}
 		}
 		if (src != null && !src.equals("")) {
 		if (src != null && !src.equals("")) {
 			if (type != 0 || dirName.equals("product")) {
 			if (type != 0 || dirName.equals("product")) {
@@ -98,7 +98,7 @@ public class ProductUtils {
 			}
 			}
 		}else {
 		}else {
 			if(StringUtils.isEmpty(image)) {
 			if(StringUtils.isEmpty(image)) {
-				image = "/public/3.0/img/default/none.jpg";
+				image = "/img/default/none.jpg";
 			}
 			}
 		}
 		}
 		return domain + image;
 		return domain + image;