|
@@ -6,6 +6,9 @@ import com.caimei365.user.model.dto.BehaviorRecordDto;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpSession;
|
|
|
+
|
|
|
/**
|
|
|
* Description
|
|
|
*
|
|
@@ -19,6 +22,7 @@ public class CmBehaviorRecordApi {
|
|
|
|
|
|
/**
|
|
|
* 用户行为记录
|
|
|
+ * @param request
|
|
|
* @param userId
|
|
|
* @param pagePath
|
|
|
* @param pageType
|
|
@@ -29,7 +33,9 @@ public class CmBehaviorRecordApi {
|
|
|
*/
|
|
|
@IpSave(saveName="用户行为记录",saveParams = true)
|
|
|
@GetMapping("/Statistics")
|
|
|
- public ResponseJson<String> behaviorRecordApp(Integer userId,String pagePath,String pageType,String pageLabel,String behaviorType,Integer productId,String accessDuration,Integer accessClient,Integer shopId){
|
|
|
+ public ResponseJson<String> behaviorRecordApp(HttpServletRequest request, Integer userId,String pagePath,String pageType,String pageLabel,String behaviorType,Integer productId,String accessDuration,Integer accessClient,Integer shopId){
|
|
|
+ HttpSession session = request.getSession();
|
|
|
+ String touristId = (String) session.getAttribute("touristId");
|
|
|
log.info("用户行为记录=======userId==》"+userId+"==pagePath=="+pagePath+"==pageType=="+pageType+"==pageLabel=="+pageLabel+"==behaviorType=="+behaviorType+"==productId=="+productId+"==accessDuration=="+accessDuration+"==accessClient=="+accessClient+"==shopId=="+shopId);
|
|
|
return ResponseJson.success("用户行为记录完成");
|
|
|
}
|