|
|
@@ -2,8 +2,10 @@ package com.style24.front.biz.web;
|
|
|
|
|
|
import com.gagaframework.web.parameter.GagaMap;
|
|
|
import com.gagaframework.web.security.GagaPasswordEncoder;
|
|
|
+import com.style24.core.biz.service.TscClauseService;
|
|
|
import com.style24.core.support.env.TscConstants;
|
|
|
import com.style24.core.support.session.TscSession;
|
|
|
+import com.style24.front.biz.service.TsfKakaoService;
|
|
|
import com.style24.front.biz.thirdparty.NiceCertify;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
import com.style24.persistence.domain.Customer;
|
|
|
@@ -41,6 +43,12 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
@Autowired
|
|
|
private TsfCustomerService customerService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ TscClauseService clauseService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ TsfKakaoService kakaoService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private NiceCertify niceCertify;
|
|
|
|
|
|
@@ -323,10 +331,6 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
@GetMapping("/licensing/layer/form")
|
|
|
public ModelAndView getLicensingLayerForm() {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
- // 이용약관
|
|
|
-// mav.addObject("clause10", customerService.getClauseOne("10"));
|
|
|
-
|
|
|
-// mav.setViewName(super.getDeviceViewName("customer/LicensingLayerForm"));
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
@@ -342,9 +346,6 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
public ModelAndView getPrivacyLayerForm() {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
- // 개인정보취급방침
|
|
|
-// mav.addObject("clause11", customerService.getClauseOne("11"));
|
|
|
-// mav.setViewName(super.getDeviceViewName("customer/PrivacyLayerForm"));
|
|
|
return mav;
|
|
|
}
|
|
|
|
|
|
@@ -358,10 +359,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
@GetMapping("/marketing/layer/form")
|
|
|
public ModelAndView getMarketingLayerForm() {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
- // 마케팅 동의
|
|
|
-// mav.addObject("clause18", customerService.getClauseOne("18"));
|
|
|
-// mav.setViewName(super.getDeviceViewName("customer/MarketingLayerForm"));
|
|
|
+
|
|
|
|
|
|
return mav;
|
|
|
}
|
|
|
@@ -511,9 +509,9 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 가입화면 - 휴대포 확인
|
|
|
+ * 가입화면 - 휴대폰 확인(임시)
|
|
|
*
|
|
|
- * @param customer - email
|
|
|
+ * @param customer - cellphnno
|
|
|
* @return GagaMap - 결과정보
|
|
|
* @author jsshin
|
|
|
* @since 2021. 02. 18
|
|
|
@@ -540,9 +538,9 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 가입화면 - 휴대폰 인증
|
|
|
+ * 가입화면 - 나이스 휴대폰인증
|
|
|
*
|
|
|
- * @param customer - cellPhnno
|
|
|
+ * @param customer - 인증정보
|
|
|
* @return GagaMap - 결과정보
|
|
|
* @author jsshin
|
|
|
* @since 2021. 02. 18
|
|
|
@@ -575,15 +573,22 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
|
|
|
@PostMapping("/join/save")
|
|
|
@ResponseBody
|
|
|
- public GagaMap saveCustomerJoin(@RequestBody Customer customer) {
|
|
|
+ public GagaMap saveJoinCustomer(@RequestBody Customer customer) {
|
|
|
String encData = TscSession.getAttribute("encData");
|
|
|
customer.setEncData(encData);
|
|
|
GagaMap authInfo = niceCertify.getCertifyCellPhoneResultInfo(customer);
|
|
|
customer.setCi(authInfo.getString("sCi"));
|
|
|
|
|
|
- // validation
|
|
|
+ // 1.입력 받은 데이터 검증
|
|
|
|
|
|
+ // 2.고객정보 생성 및 혜택 처리
|
|
|
|
|
|
+ // 3.알림톡 및 메일 발송
|
|
|
+ try {
|
|
|
+
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("error", e);
|
|
|
+ }
|
|
|
|
|
|
return new GagaMap();
|
|
|
}
|