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

상품권 현금영수증 당일 날짜 수정 및 카카오로그인 확ìã인용 설정

yujung 4 лет назад
Родитель
Сommit
fc7b5d7c00

+ 2 - 1
src/main/java/com/style24/front/biz/web/TsfIndexController.java

@@ -120,10 +120,11 @@ public class TsfIndexController extends TsfBaseController {
 
 		mav.addObject("front", env.getProperty("domain.front"));
 		mav.addObject("sitekey", env.getProperty("google.sitekey"));
+		mav.addObject("ipAddress", TsfSession.getIpAddress());
 
-		// 로그인 페이지로
 		mav.setViewName(super.getDeviceViewName("SigninForm"));
 
+
 		return mav;
 	}
 

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

@@ -219,6 +219,7 @@
 		/* TsfGiftcard.getCashReceiptsInfo */
 		SELECT O.ORD_NO
 		     , DATE_FORMAT(O.ORD_DT, '%Y%m%d%H%i%S') AS TRADE_TIME
+		     , DATE_FORMAT(NOW(), '%Y%m%d%H%i%S')    AS NOW_TIME
 		     , O.ORD_NM
 		     , O.ORD_PHNNO
 		     , O.ORD_EMAIL

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/SigninFormMob.html

@@ -77,7 +77,7 @@
 					<h3 class="sr-only">간편로그인</h3>
 					<ul class="login_utill">
 						<!-- 2021.09.01 card007 카카오싱크 검수 주석처리 -->
-						<th:block th:if="false">
+						<th:block th:if="${ipAddress == '180.71.39.150' || ipAddress == '127.0.0.1'}">
 						<li class="lu_kakao">
 							<a href="javascript:void(0)" onclick="cfnLoginKakao();">
 								<div class="ico"></div>카카오

+ 2 - 0
src/main/webapp/WEB-INF/views/mob/mypage/MypageOrderDetailFormMob.html

@@ -765,7 +765,9 @@
 					</table>
 					<button type="button" class="btn btn_default btn_sm" th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_30'}" onclick="fnReceipt('card')"><span>신용카드 전표</span></button>
 					<button type="button" class="btn btn_default btn_sm" th:if="${paymentInfo.pgGb == 'KCP' and not #strings.isEmpty(paymentInfo.cashAuthNo) and (paymentInfo.payMeans == 'G014_10' or paymentInfo.payMeans == 'G014_20')}" onclick="fnReceipt('cash')"><span>현금 영수증</span></button>
+<!--					<th:block th:if="${#numbers.formatInteger(#calendars.format(#calendars.createNow(), 'yyyyMMdd'), 1)} - ${#numbers.formatInteger(#strings.replace(oneData.ordDt, '.', ''), 1)} < 90">-->
 					<button type="button" class="btn btn_default btn_sm" th:if="${orderAmtInfo.gfcdUseAmt > 0 and (cashReceiptsInfo == null or #strings.isEmpty(cashReceiptsInfo.authNo))}" th:attr="ordNo=${ordNo}" onclick="fnRequestCashReceipt(this);"><span>상품권 현금 영수증 신청</span></button>
+<!--					</th:block>-->
 					<!-- 
 					<button type="button" class="btn btn_default btn_sm" th:if="${orderAmtInfo.gfcdUseAmt > 0 and #strings.isEmpty(paymentInfo.cashAuthNo)}" th:attr="ordNo=${ordNo}" onclick="fnRequestCashReceipt(this);"><span>상품권 현금 영수증 신청</span></button>
 					 -->

+ 1 - 1
src/main/webapp/WEB-INF/views/web/SigninFormWeb.html

@@ -81,7 +81,7 @@
 						<h5 class="sr-only">간편로그인</h5>
 						<ul>
 							<!-- 2021.09.01 card007 카카오싱크 검수 주석처리 -->
-							<th:block th:if="false">
+							<th:block th:if="${ipAddress == '180.71.39.150' || ipAddress == '127.0.0.1'}">
 							<li>
 								<a href="javascript:void(0)" onclick="cfnLoginKakao();">
 									<i class="ico ico_snslogin kakao"></i>

+ 3 - 1
src/main/webapp/WEB-INF/views/web/mypage/MypageOrderDetailFormWeb.html

@@ -473,7 +473,9 @@
 													<dd>
 														<button type="button" class="btn btn_default btn_sm" th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_30'}" onclick="fnReceipt('card')"><span>신용카드 전표</span></button>
 														<button type="button" class="btn btn_default btn_sm" th:if="${paymentInfo.pgGb == 'KCP' and not #strings.isEmpty(paymentInfo.cashAuthNo) and (paymentInfo.payMeans == 'G014_10' or paymentInfo.payMeans == 'G014_20')}" onclick="fnReceipt('cash')"><span>현금 영수증</span></button>
-														<button type="button" class="btn btn_default btn_sm" th:if="${orderAmtInfo.gfcdUseAmt > 0 and (cashReceiptsInfo == null or #strings.isEmpty(cashReceiptsInfo.authNo))}" th:attr="ordNo=${ordNo}" onclick="fnRequestCashReceipt(this);"><span>상품권 현금 영수증 신청</span></button>
+<!--														<th:block th:if="${#numbers.formatInteger(#calendars.format(#calendars.createNow(), 'yyyyMMdd'), 1)} - ${#numbers.formatInteger(#strings.replace(oneData.ordDt, '.', ''), 1)} < 90">-->
+															<button type="button" class="btn btn_default btn_sm" th:if="${orderAmtInfo.gfcdUseAmt > 0 and (cashReceiptsInfo == null or #strings.isEmpty(cashReceiptsInfo.authNo))}" th:attr="ordNo=${ordNo}" onclick="fnRequestCashReceipt(this);"><span>상품권 현금 영수증 신청</span></button>
+<!--														</th:block>-->
 													</dd>
 												</div>
 											</dl>