Parcourir la source

사은품 이미지 경로 수정

jsh77b il y a 4 ans
Parent
commit
7cd36ee9e1

+ 1 - 1
src/main/resources/config/application-locd.yml

@@ -29,7 +29,7 @@ upload:
         target.path: /WIDE/workspace/files/data/style24
         max.size: 10
         allow.extension: jpg|gif|jpeg|png|bmp|txt|doc|docx|ppt|pptx|xls|xlsx|hwp|pdf
-        view: //ldimage.style24.com
+        view: //image.istyle24.com/Upload
     goods:
         target.path: /WIDE/workspace/files/data/style24/Upload/ProductImage
         max.size: 10

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/order/OrderFreegiftInfoMob.html

@@ -51,12 +51,12 @@
 							<div class="form_field">
 								<!-- 전체지급 사음품(필수) -->
 								<th:block th:if="${freegift.allYn} == 'Y'">
-									<th:block th:each="freegiftGoods, k : ${freegiftGoodsList}">
+									<th:block th:each="freegiftGoods, k : ${freegiftGoodsList}" th:with="imageUrl=${@environment.getProperty('upload.default.view')}">
 										<th:block th:if="${freegift.freegiftSq} == ${freegiftGoods.freegiftSq}">
 											<div class="gift">
 												<input type="checkbox" th:name="'rdi-gift'+${i.count}" th:id="'rdi-gift'+${i.count}+${k.count}" class="chk_img freegiftRdo" th:value="${freegiftGoods.freegiftValSq}" usepoint="0" allYn="Y" checked onclick="return(false);">
 												<label for="rdi-gift11"> 
-													<span class="thumb"><img th:src="${@environment.getProperty('domain.uximage')} + '/images/pc/thumb/tmp_gift1.jpg'" width="" alt=""></span>
+													<span class="thumb"><img th:src="${imageUrl + '/' + freegiftGoods.sysImgNm}" width="" alt=""></span>
 													<span class="name" th:text="${freegiftGoods.goodsNm}"></span> 
 													<span class="deduct">무료</span>
 												</label>

+ 2 - 2
src/main/webapp/WEB-INF/views/web/order/OrderFreegiftInfoWeb.html

@@ -46,13 +46,13 @@
 				<div class="form_field">
 					<!-- 전체지급 사음품(필수) -->
 					<th:block th:if="${freegift.allYn} == 'Y'">
-						<th:block th:each="freegiftGoods, k : ${freegiftGoodsList}">
+						<th:block th:each="freegiftGoods, k : ${freegiftGoodsList}" th:with="imageUrl=${@environment.getProperty('upload.default.view')}">
 							<th:block th:if="${freegift.freegiftSq} == ${freegiftGoods.freegiftSq}">
 								<div class="gift">
 									<input type="hidden" th:name="'rdi-gift'+${i.count}" th:id="'rdi-gift'+${i.count}+${k.count}" class="chk_img freegiftRdo" th:value="${freegiftGoods.freegiftValSq}" usepoint="0" allYn="Y">
 									<input type="checkbox" name="chk-gift-required" th:id="'chk-gift-required'+${i.count}+${k.count}" class="chk_img" value="" checked="" onclick="return(false);">
 									<label for="rdi-gift'+${i.count}+${k.count}">
-										<span class="thumb"><img th:src="${@environment.getProperty('domain.uximage')} + '/images/pc/thumb/tmp_gift1.jpg'" width="" alt=""></span>
+										<span class="thumb"><img th:src="${imageUrl + '/' + freegiftGoods.sysImgNm}" width="" alt=""></span>
 										<span class="name" th:text="${freegiftGoods.goodsNm}"></span>
 										<span class="deduct">무료</span>
 									</label>