Subversion Repositories SmartDukaan

Rev

Rev 2995 | Rev 3185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2995 Rev 3126
Line 2... Line 2...
2
 
2
 
3
import in.shop2020.datalogger.EventType;
3
import in.shop2020.datalogger.EventType;
4
import in.shop2020.model.v1.user.Affiliate;
4
import in.shop2020.model.v1.user.Affiliate;
5
import in.shop2020.serving.services.UserSessionInfo;
5
import in.shop2020.serving.services.UserSessionInfo;
6
import in.shop2020.serving.utils.DesEncrypter;
6
import in.shop2020.serving.utils.DesEncrypter;
7
import in.shop2020.thrift.clients.UserContextServiceClient;
7
import in.shop2020.thrift.clients.UserClient;
8
import in.shop2020.utils.DataLogger;
8
import in.shop2020.utils.DataLogger;
9
 
9
 
10
import java.util.Date;
10
import java.util.Date;
11
import java.util.HashMap;
11
import java.util.HashMap;
12
import java.util.Map;
12
import java.util.Map;
Line 178... Line 178...
178
                    affCookie.setMaxAge(0);
178
                    affCookie.setMaxAge(0);
179
                    response.addCookie(affCookie);
179
                    response.addCookie(affCookie);
180
                }
180
                }
181
                return;
181
                return;
182
            }
182
            }
183
            UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
183
            UserClient userContextServiceClient = new UserClient();
184
            in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
184
            in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
185
            long affiliateId = Long.parseLong(affId);
185
            long affiliateId = Long.parseLong(affId);
186
            Affiliate affiliate = userClient.getAffiliateById(affiliateId);
186
            Affiliate affiliate = userClient.getAffiliateById(affiliateId);
187
            if (affiliate != null) {
187
            if (affiliate != null) {
188
                affCookie = (Cookie) cookiesMap.get(AFF_COOKIE);
188
                affCookie = (Cookie) cookiesMap.get(AFF_COOKIE);