Просмотр исходного кода

Merge branch 'style' into gagamel_onetoone

card007 4 лет назад
Родитель
Сommit
a4a630c306

+ 14 - 7
src/main/java/com/style24/front/biz/thirdparty/EigeneaiApi.java

@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Component;
+import org.springframework.web.client.RestClientException;
 import org.springframework.web.client.RestTemplate;
 
 import com.google.gson.Gson;
@@ -511,15 +512,21 @@ public class EigeneaiApi {
 		log.info("requestUrl: {}", requestUrl);
 		URI url = URI.create(requestUrl);
 
-		// GET방식으로 호출
-		ResponseEntity<String> responseEntity = restTemplate.getForEntity(url, String.class);
-		log.info("responseEntity.getStatusCode(): {} ", responseEntity.getStatusCode());
+		String responseJson = null;
+		
+		try {
+			// GET방식으로 호출
+			ResponseEntity<String> responseEntity = restTemplate.getForEntity(url, String.class);
+			log.info("responseEntity.getStatusCode(): {} ", responseEntity.getStatusCode());
 
-		String responseJson = responseEntity.getBody();
-		// log.info("responseEntity.getBody(): {}", responseJson);
+			responseJson = responseEntity.getBody();
+			// log.info("responseEntity.getBody(): {}", responseJson);
 
-		if (!responseEntity.getStatusCode().equals(HttpStatus.OK)) {
-			return null;
+			if (!responseEntity.getStatusCode().equals(HttpStatus.OK)) {
+				return new Eigeneai();
+			}
+		} catch (RestClientException e) {
+			return new Eigeneai();
 		}
 
 		Gson gson = new Gson();

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsfGoods.xml

@@ -848,7 +848,7 @@
 		                             AND B.USE_YN = 'Y'
 		                             AND G.DELV_LOC_CD = B.DELV_LOC_CD 
 		INNER JOIN TB_SHIP_COMPANY SC ON B.SHIP_COMP_CD = SC.SHIP_COMP_CD
-		                             -- AND SC.USE_YN = 'Y' /*cj대한통운 이슈로 체크제외*/
+		                              AND SC.USE_YN = 'Y'
 		WHERE G.GOODS_CD = #{goodsCd}
 		ORDER BY A.DELV_FEE_CD 
 		LIMIT 1

BIN
src/main/webapp/WEB-INF/lib/Istyle-1.3.jar


+ 9 - 0
src/main/webapp/WEB-INF/views/mob/common/fragments/FooterMob.html

@@ -41,6 +41,7 @@
 						<li class="fn">통신판매업신고번호 : 제 2020-서울영등포-1432</li>
 						<li class="fn">개인정보보호책임자 : 배기영</li>
 						<li class="fn">호스팅 서비스 : 아이스타일이십사㈜</li>
+						<li class="fn">고객센터 1544-5336(평일 09:00~ 18:00 토/일/공휴일 휴무)</li>
 					</ul>
 				</div>
 
@@ -53,6 +54,14 @@
 					<li th:if="${(isApp == null || isApp == 'false' || isApp == '')}"><a href="http://zine.istyle24.com" target="_blank" title="새창 열림" class="t_req">SN&#64;PP</a></li>
 					<li th:if="${isApp != null && isApp == 'true'}"><a href="public://?link=http://zine.istyle24.com" target="_blank" title="새창 열림" class="t_req">SN&#64;PP</a></li>
 				</ul>
+				<ul class="copy">
+
+					<li>스타일24 고객센터 1544-5336</li>
+					<li>평일 09:00~ 18:00 토/일/공휴일 휴무)</li>
+					
+					<li> help Email : help@style24.com</li>
+					
+					</ul>
 				<ul class="copy">
 					<li>COPYRIGHTⓒ2021 STYLE24 ALL RIGHTS RESERVED.</li>
 				</ul>