|
|
@@ -3,6 +3,8 @@ package com.style24.front.biz.web;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
|
|
+import com.style24.front.biz.service.TsfCouponService;
|
|
|
+import com.style24.persistence.domain.Coupon;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@@ -55,6 +57,9 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
@Autowired
|
|
|
private TscKakaotalkService kakaotalkService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TsfCouponService couponService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private NiceCertify niceCertify;
|
|
|
|
|
|
@@ -604,10 +609,12 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
boolean isJoin = customerService.saveJoinCustomer(customer);
|
|
|
|
|
|
if (isJoin) {
|
|
|
+ Coupon coupon = couponService.getJoinCouponInfo();
|
|
|
+
|
|
|
// 4.알림톡 발송
|
|
|
try {
|
|
|
if (StringUtils.isNotBlank(customer.getCellPhnno())) {
|
|
|
- kakaotalkService.sendJoinCongrat(customer, customer.getCustNo());
|
|
|
+ kakaotalkService.sendJoinCongrat(customer, coupon, customer.getCustNo());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.error("error", e);
|
|
|
@@ -621,6 +628,7 @@ public class TsfCustomerController extends TsfBaseController {
|
|
|
} catch (Exception e) {
|
|
|
log.error("error", e);
|
|
|
}
|
|
|
+
|
|
|
customerService.getLogin(customer.getCustNo(), request);
|
|
|
}
|
|
|
|