商品分类控制器无效注入去除,页面请求埋点request替换为静态方法
This commit is contained in:
parent
7d43279b49
commit
3727b67a23
@ -2,6 +2,7 @@ package cn.lili.modules.statistics.aop.aspect;
|
|||||||
|
|
||||||
import cn.lili.cache.Cache;
|
import cn.lili.cache.Cache;
|
||||||
import cn.lili.cache.CachePrefix;
|
import cn.lili.cache.CachePrefix;
|
||||||
|
import cn.lili.common.context.ThreadContextHolder;
|
||||||
import cn.lili.common.utils.SpelUtil;
|
import cn.lili.common.utils.SpelUtil;
|
||||||
import cn.lili.common.vo.ResultMessage;
|
import cn.lili.common.vo.ResultMessage;
|
||||||
import cn.lili.common.utils.IpUtils;
|
import cn.lili.common.utils.IpUtils;
|
||||||
@ -67,7 +68,7 @@ public class PageViewInterceptor {
|
|||||||
default:
|
default:
|
||||||
storeId = "-1";
|
storeId = "-1";
|
||||||
}
|
}
|
||||||
String ip = IpUtils.getIpAddress(request);
|
String ip = IpUtils.getIpAddress(ThreadContextHolder.getHttpRequest());
|
||||||
try {
|
try {
|
||||||
//PV 统计48小时过期 留下一定时间予以统计累计数据库
|
//PV 统计48小时过期 留下一定时间予以统计累计数据库
|
||||||
cache.incr(CachePrefix.PV.getPrefix() + StatisticsSuffix.suffix(), 60 * 60 * 48);
|
cache.incr(CachePrefix.PV.getPrefix() + StatisticsSuffix.suffix(), 60 * 60 * 48);
|
||||||
|
@ -27,8 +27,6 @@ import java.util.List;
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public class CategoryParameterGroupStoreController {
|
public class CategoryParameterGroupStoreController {
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ParametersService parametersService;
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CategoryParameterGroupService categoryParameterGroupService;
|
private CategoryParameterGroupService categoryParameterGroupService;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user