| Line 4... |
Line 4... |
| 4 |
package in.shop2020.serving.controllers;
|
4 |
package in.shop2020.serving.controllers;
|
| 5 |
|
5 |
|
| 6 |
|
6 |
|
| 7 |
import in.shop2020.datalogger.EventType;
|
7 |
import in.shop2020.datalogger.EventType;
|
| 8 |
import in.shop2020.model.v1.user.Sex;
|
8 |
import in.shop2020.model.v1.user.Sex;
|
| - |
|
9 |
import in.shop2020.model.v1.user.TrackLogType;
|
| 9 |
import in.shop2020.model.v1.user.User;
|
10 |
import in.shop2020.model.v1.user.User;
|
| 10 |
import in.shop2020.serving.interceptors.TrackingInterceptor;
|
11 |
import in.shop2020.serving.interceptors.TrackingInterceptor;
|
| 11 |
import in.shop2020.serving.utils.DesEncrypter;
|
12 |
import in.shop2020.serving.utils.DesEncrypter;
|
| 12 |
import in.shop2020.thrift.clients.UserClient;
|
13 |
import in.shop2020.thrift.clients.UserClient;
|
| 13 |
import in.shop2020.utils.DataLogger;
|
14 |
import in.shop2020.utils.DataLogger;
|
| Line 180... |
Line 181... |
| 180 |
userinfo.setCartId(user.getActiveCartId());
|
181 |
userinfo.setCartId(user.getActiveCartId());
|
| 181 |
int totalItems = userClient.getCart(userinfo.getCartId()).getLinesSize();
|
182 |
int totalItems = userClient.getCart(userinfo.getCartId()).getLinesSize();
|
| 182 |
userinfo.setTotalItems(totalItems);
|
183 |
userinfo.setTotalItems(totalItems);
|
| 183 |
if (cookiesMap.containsKey(TrackingInterceptor.AFF_COOKIE)) {
|
184 |
if (cookiesMap.containsKey(TrackingInterceptor.AFF_COOKIE)) {
|
| 184 |
long affId = Long.parseLong(cookiesMap.get(TrackingInterceptor.AFF_COOKIE).getValue());
|
185 |
long affId = Long.parseLong(cookiesMap.get(TrackingInterceptor.AFF_COOKIE).getValue());
|
| 185 |
userClient.addTrackLog(affId, userId, "new registration", "",email, (new Date()).getTime());
|
186 |
userClient.addTrackLog(affId, userId, TrackLogType.NEW_REGISTRATION, "",email, (new Date()).getTime());
|
| 186 |
}
|
187 |
}
|
| 187 |
DataLogger.logData(EventType.REGISTER_SUCCESS, getSessionId(), userinfo.getUserId(), email, userName, communicationEmail);
|
188 |
DataLogger.logData(EventType.REGISTER_SUCCESS, getSessionId(), userinfo.getUserId(), email, userName, communicationEmail);
|
| 188 |
|
189 |
|
| 189 |
return true;
|
190 |
return true;
|
| 190 |
}
|
191 |
}
|