소스 검색

샵링커 상품전송-기술서 수정

jmh 4 년 전
부모
커밋
b73098bcc5
1개의 변경된 파일29개의 추가작업 그리고 25개의 파일을 삭제
  1. 29 25
      src/main/java/com/style24/admin/biz/service/TsaShoplinkerService.java

+ 29 - 25
src/main/java/com/style24/admin/biz/service/TsaShoplinkerService.java

@@ -350,9 +350,24 @@ public class TsaShoplinkerService {
 				htmlDesc = descStr;
 
 			}else {
-
-				// 1) 상세내용 - 상품설명
-				htmlDesc = "<div class=\"st_descrp_box\" style=\"max-height:1100px; overflow:hidden; text-align: left; color:#222;\">";
+				// 1) 상세내용 - 모델 착용컷
+				String modelDesc = "";
+				if( 0 < dImgModelList.size()) {
+					modelDesc += "<div class=\"st_view_outfit_box\" style=\"margin-top: 100px;text-align: center;\">";
+					modelDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">OUTFIT VIEW</span>";
+					modelDesc += "<span class=\"st_model_info\" style=\"display: block;margin-top: 20px;color: #666;font-size: 16px;font-weight: 200;text-align: center;\">"+goodsMap.getModelInfo()+"</span>";
+					modelDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
+					for(String img : dImgModelList) {
+						modelDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width:720px;width:auto;\">";
+					}
+					modelDesc += "</div>";
+					modelDesc += "</div>";
+					
+					htmlDesc = modelDesc;
+				}
+				
+				// 2) 상세내용 - 상품설명
+				htmlDesc += "<div class=\"st_descrp_box\" style=\"max-height:1100px; overflow:hidden; text-align: left; color:#222;\">";
 				if( null != goodsMap.getDetailDescNew20()) {
 					htmlDesc += "<div class=\"st_desc_simple\" style=\"position:relative; margin-top:0px; margin-left:auto; margin-right:auto;\">";
 					htmlDesc += "<span class=\"st_tit_desc\" style=\"display:block; margin-bottom:10px; font-size:18px; font-weight:500; letter-spacing:-0.025em;\">"+goodsMap.getDetailDescNew10()+"</span>";
@@ -371,7 +386,7 @@ public class TsaShoplinkerService {
 				}
 				htmlDesc += "</div>";
 
-				// 2) 상세내용 - 상품옵션별 색상
+				// 3) 상세내용 - 상품옵션별 색상
 				String colorDesc = "";
 				imgParam.setExtmallDescImgYn("N");
 				imgParam.setColorListYn("Y"); // 색상별 이미지 정보만 가져옴
@@ -390,7 +405,7 @@ public class TsaShoplinkerService {
 						// 동일색상끼리 이미지 세팅
 						for(ShoplinkerGoods ic2 : imgColorList ) {
 							if( tmpColor.equals(ic2.getColorCd())) {
-								colorDesc += "<img src=\""+ imgPath+"/"+ic2.getSysImgNm()+"\" alt=\"\" style=\"max-width:100%;margin: 10px auto 0;display: block;\">";
+								colorDesc += "<img src=\""+ imgPath+"/"+ic2.getSysImgNm()+"\" alt=\"\" style=\"max-width:720px;width:auto;margin: 10px auto 0;display: block;\">";
 							}
 						}
 
@@ -401,27 +416,14 @@ public class TsaShoplinkerService {
 				colorDesc += "</div>";
 				htmlDesc += colorDesc;
 
-				// 3) 상세내용 - 모델 착용컷
-				String dtlDesc = "";
-				if( 0 < dImgModelList.size()) {
-					dtlDesc += "<div class=\"st_view_outfit_box\" style=\"margin-top: 100px;text-align: center;\">";
-					dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">OUTFIT VIEW</span>";
-					dtlDesc += "<span class=\"st_model_info\" style=\"display: block;margin-top: 20px;color: #666;font-size: 16px;font-weight: 200;text-align: center;\">"+goodsMap.getModelInfo()+"</span>";
-					dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
-					for(String img : dImgModelList) {
-						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width: 100%;\">";
-					}
-					dtlDesc += "</div>";
-					dtlDesc += "</div>";
-				}
-
 				// 4) 상세내용 - 상품컷
+				String dtlDesc = "";
 				if( 0 < dImgDetailList.size()) {
 					dtlDesc += "<div class=\"st_view_detail_box\" style=\"margin-top: 100px;text-align: center;\">";
 					dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">PRODUCT VIEW</span>";
 					dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
 					for(String img : dImgDetailList) {
-						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width: 100%;\">";
+						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"display: block;margin: 10px auto 0; max-width:720px;width:auto;\">";
 					}
 	                dtlDesc += "</div>";
 	        		dtlDesc += " </div>";
@@ -432,7 +434,7 @@ public class TsaShoplinkerService {
 	        		dtlDesc += "<div class=\"st_view_fabric_box\" style=\"margin-top: 100px;text-align: center;\">";
 	        		dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">FABRIC</span>";
 	        		dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
-	        		dtlDesc += "<img src=\""+dMaterial +"\" alt=\"\" style=\"display: block;margin: 10px auto 0;margin-top: 0; max-width: 100%;\">";
+	        		dtlDesc += "<img src=\""+dMaterial +"\" alt=\"\" style=\"display: block;margin: 10px auto 0;margin-top: 0; max-width:720px;width:auto;\">";
 	                dtlDesc += "</div>";
 	                dtlDesc += "</div>";
 				}
@@ -442,11 +444,9 @@ public class TsaShoplinkerService {
 	                dtlDesc += "<div class=\"st_view_label_box\" style=\"margin-top: 100px;text-align: center;\">";
 	                dtlDesc += "<span class=\"st_tit_view\" style=\"display: block;color: #222;font-size: 32px;font-weight: 300;text-align: center;\">LABEL INFO</span>";
 	                dtlDesc += "<div class=\"st_view\" style=\"margin-top: 40px;\">";
-	                dtlDesc += "<span style=\"display:inline-block;\">";
 	                for(String img : dLabelList) {
-						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"float:left; margin-top:0; margin-left:20px; max-width: 100%;\">";
+						dtlDesc += "<img src=\""+ img +"\" alt=\"\" style=\"float:left; margin-top:0; margin-left:20px; max-width: 250px;width:100%;\">";
 					}
-	                dtlDesc += "</span>";
 	                dtlDesc += "</div>";
 	                dtlDesc += "</div>";
 				}
@@ -543,7 +543,11 @@ public class TsaShoplinkerService {
 					htmlDesc += "</div>";
 					htmlDesc += " </div>";
                 }
-
+                
+                // https 추가
+                if( -1 < htmlDesc.indexOf("src=\"//image")) {
+    				htmlDesc = htmlDesc.replaceAll("src=\"//image", "src=\"https://image");
+    			}
 
                 // 8) 상세내용 - 상품필수정보
                 ShoplinkerGoods certInfo = admShoplinkerDao.getCert(shoplinkerGoods);