|
|
@@ -41,8 +41,17 @@ public class TsfAflinkInterceptor extends HandlerInterceptorAdapter {
|
|
|
String afLinkCd = params.getString("afLinkCd");
|
|
|
|
|
|
if (StringUtils.isNotBlank(afLinkCd)) {
|
|
|
- if (!afLinkCd.equals(TsfSession.getAttribute("afLinkCd"))) {
|
|
|
- TsfSession.setAttribute("afLinkCd", afLinkCd);
|
|
|
+ // 유효한 웹제휴채널코드 여부 조회
|
|
|
+ String isAvailAfLinkCdYn = commonService.getAvailableAfLinkYn(afLinkCd);
|
|
|
+ log.info("isAvailAfLinkCdYn: {}", isAvailAfLinkCdYn);
|
|
|
+
|
|
|
+ // 유효한 웹제휴채널코드이면
|
|
|
+ if (isAvailAfLinkCdYn.equals("Y")) {
|
|
|
+ if (!afLinkCd.equals(TsfSession.getAttribute("afLinkCd"))) {
|
|
|
+ TsfSession.setAttribute("afLinkCd", afLinkCd);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ afLinkCd = "";
|
|
|
}
|
|
|
} else {
|
|
|
if (TsfSession.getAttribute("isApp").equals("true")) { // 앱이면
|
|
|
@@ -68,10 +77,12 @@ public class TsfAflinkInterceptor extends HandlerInterceptorAdapter {
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
- InflowHst inflow = new InflowHst();
|
|
|
- inflow.setAfLinkCd(afLinkCd);
|
|
|
- inflow.setPageUrl(request.getRequestURL() + queryString);
|
|
|
- commonService.createInflowHistory(inflow);
|
|
|
+ if (StringUtils.isNotBlank(afLinkCd)) {
|
|
|
+ InflowHst inflow = new InflowHst();
|
|
|
+ inflow.setAfLinkCd(afLinkCd);
|
|
|
+ inflow.setPageUrl(request.getRequestURL() + queryString);
|
|
|
+ commonService.createInflowHistory(inflow);
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
// Do nothing
|
|
|
}
|