|
|
@@ -3,12 +3,11 @@ package com.style24.front.biz.web;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
|
|
-import com.style24.front.biz.thirdparty.Yes24Login;
|
|
|
-import com.style24.persistence.domain.CustSnsInfo;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -22,13 +21,16 @@ import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.front.biz.service.TsfCustomerService;
|
|
|
import com.style24.front.biz.service.TsfKakaoService;
|
|
|
import com.style24.front.biz.thirdparty.NiceCertify;
|
|
|
+import com.style24.front.biz.thirdparty.Yes24Login;
|
|
|
import com.style24.front.support.controller.TsfBaseController;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
+import com.style24.persistence.domain.CustSnsInfo;
|
|
|
import com.style24.persistence.domain.Customer;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import com.gagaframework.web.parameter.GagaMap;
|
|
|
+import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
|
|
|
/**
|
|
|
* 고객(회원) Controller
|
|
|
@@ -67,8 +69,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 02. 05
|
|
|
*/
|
|
|
@RequestMapping("/id/find/form")
|
|
|
- public ModelAndView idFindForm(@RequestParam(value = "sEncData", required = false) String sEncData
|
|
|
- , @RequestParam(value = "authMethod", required = false) String authMethod) {
|
|
|
+ public ModelAndView idFindForm(@RequestParam(value = "sEncData", required = false) String sEncData, @RequestParam(value = "authMethod", required = false) String authMethod) {
|
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
@@ -137,8 +138,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 02. 05
|
|
|
*/
|
|
|
@RequestMapping("/password/find/form")
|
|
|
- public ModelAndView pwdFindForm(@RequestParam(value = "sEncData", required = false) String sEncData
|
|
|
- , @RequestParam(value = "authMethod", required = false) String authMethod) {
|
|
|
+ public ModelAndView pwdFindForm(@RequestParam(value = "sEncData", required = false) String sEncData, @RequestParam(value = "authMethod", required = false) String authMethod) {
|
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
mav.addObject("sEncData", sEncData);
|
|
|
@@ -338,9 +338,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 02. 05
|
|
|
*/
|
|
|
@RequestMapping("/join/form")
|
|
|
- public ModelAndView getJoinForm(@RequestParam(value = "sEncData", required = false) String sEncData
|
|
|
- , @RequestParam(value = "authMethod", required = false) String authMethod
|
|
|
- , @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
+ public ModelAndView getJoinForm(@RequestParam(value = "sEncData", required = false) String sEncData, @RequestParam(value = "authMethod", required = false) String authMethod, @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
@@ -362,8 +360,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 02. 09
|
|
|
*/
|
|
|
@GetMapping("/nice/cellphone/form")
|
|
|
- public ModelAndView niceCellphoneForm(@RequestParam(value = "redirectUrl", required = false) String redirectUrl
|
|
|
- , @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
+ public ModelAndView niceCellphoneForm(@RequestParam(value = "redirectUrl", required = false) String redirectUrl, @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
GagaMap result = niceCertify.certifyCellPhone();
|
|
|
|
|
|
@@ -386,8 +383,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 02. 09
|
|
|
*/
|
|
|
@GetMapping("/nice/ipin/form")
|
|
|
- public ModelAndView getCertifyNiceIpin(@RequestParam(value = "redirectUrl", required = false) String redirectUrl
|
|
|
- , @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
+ public ModelAndView getCertifyNiceIpin(@RequestParam(value = "redirectUrl", required = false) String redirectUrl, @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
GagaMap result = niceCertify.certifyIpin();
|
|
|
|
|
|
@@ -411,10 +407,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 02. 09
|
|
|
*/
|
|
|
@RequestMapping("/nice/certify/callback")
|
|
|
- public ModelAndView niceCertifyCallback(@RequestParam(value = "EncodeData", required = false) String encodeData
|
|
|
- , @RequestParam(value = "enc_data", required = false) String encData
|
|
|
- , @RequestParam(value = "param_r1", required = false) String redirectUrl
|
|
|
- , @RequestParam(value = "param_r2", required = false) String custParams) {
|
|
|
+ public ModelAndView niceCertifyCallback(@RequestParam(value = "EncodeData", required = false) String encodeData, @RequestParam(value = "enc_data", required = false) String encData, @RequestParam(value = "param_r1", required = false) String redirectUrl, @RequestParam(value = "param_r2", required = false) String custParams) {
|
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
String sEncData = "";
|
|
|
@@ -667,9 +660,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 03. 08
|
|
|
*/
|
|
|
@RequestMapping("/dormant/certify/form")
|
|
|
- public ModelAndView getDormantCeirtyForm(@RequestParam(value = "sEncData", required = false) String sEncData
|
|
|
- , @RequestParam(value = "authMethod", required = false) String authMethod
|
|
|
- , @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
+ public ModelAndView getDormantCeirtyForm(@RequestParam(value = "sEncData", required = false) String sEncData, @RequestParam(value = "authMethod", required = false) String authMethod, @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
@@ -706,7 +697,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
}
|
|
|
|
|
|
GagaMap resultInfo;
|
|
|
- if (TscConstants.AuthMethod.MOBILE.value().equals(customer.getAuthMethod())){
|
|
|
+ if (TscConstants.AuthMethod.MOBILE.value().equals(customer.getAuthMethod())) {
|
|
|
resultInfo = niceCertify.getCertifyCellPhoneResultInfo(customer);
|
|
|
customer.setCi(resultInfo.getString("sCi"));
|
|
|
} else {
|
|
|
@@ -743,9 +734,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
* @since 2021. 03. 10
|
|
|
*/
|
|
|
@RequestMapping("/certification/form")
|
|
|
- public ModelAndView getCertificationForm(@RequestParam(value = "sEncData", required = false) String sEncData
|
|
|
- , @RequestParam(value = "authMethod", required = false) String authMethod
|
|
|
- , @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
+ public ModelAndView getCertificationForm(@RequestParam(value = "sEncData", required = false) String sEncData, @RequestParam(value = "authMethod", required = false) String authMethod, @RequestParam(value = "custParams", required = false) String custParams) {
|
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
@@ -761,7 +750,6 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
mav.addObject("sEncData", sEncData);
|
|
|
mav.addObject("authMethod", authMethod);
|
|
|
|
|
|
-
|
|
|
mav.setViewName(super.getDeviceViewName("customer/CertificationForm"));
|
|
|
return mav;
|
|
|
}
|
|
|
@@ -887,7 +875,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
@PostMapping("/peristalsis/yes24")
|
|
|
@ResponseBody
|
|
|
public GagaMap peristalsisYes24(HttpSession session, HttpServletRequest request) {
|
|
|
- CustSnsInfo custSnsInfo = (CustSnsInfo) session.getAttribute("custSnsInfo");
|
|
|
+ CustSnsInfo custSnsInfo = (CustSnsInfo)session.getAttribute("custSnsInfo");
|
|
|
session.removeAttribute("custSnsInfo"); // YES24 세션 지움
|
|
|
|
|
|
// 1. SNS처리
|
|
|
@@ -964,5 +952,30 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
return mav;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * SMS수신거부 처리
|
|
|
+ * @param custNo - 고객번호
|
|
|
+ * @author gagamel
|
|
|
+ * @since 2020. 5. 11
|
|
|
+ */
|
|
|
+ @GetMapping("/sms/refuse/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaResponse updateSmsReceptionRefuse(@PathVariable Integer custNo) {
|
|
|
+ customerService.updateSmsReceptionRefuse(custNo);
|
|
|
+ return super.ok(message.getMessage("SUCC_0004"));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 이메일수신거부 처리
|
|
|
+ * @param custNo - 고객번호
|
|
|
+ * @author gagamel
|
|
|
+ * @since 2020. 5. 11
|
|
|
+ */
|
|
|
+ @GetMapping("/email/refuse/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public GagaResponse updateEmailReceptionRefuse(@PathVariable Integer custNo) {
|
|
|
+ customerService.updateSmsReceptionRefuse(custNo);
|
|
|
+ return super.ok(message.getMessage("SUCC_0004"));
|
|
|
+ }
|
|
|
|
|
|
}
|