fix: getNames→siteService.toDTO获取;注入SiteService
This commit is contained in:
@@ -33,6 +33,7 @@ public class AccessResultServiceImpl implements AccessResultService {
|
||||
private final AccessResultMapper mapper;
|
||||
private final SiteConfigMapper siteConfigMapper;
|
||||
private final SiteMapper siteMapper;
|
||||
private final com.par.core.service.SiteService siteService;
|
||||
private final CachedStorageService storageService;
|
||||
|
||||
/** 去重缓存:siteId|url → contentHash,5分钟内相同内容跳过 */
|
||||
@@ -163,7 +164,7 @@ public class AccessResultServiceImpl implements AccessResultService {
|
||||
// 站点名称
|
||||
try {
|
||||
Site siteObj = siteMapper.selectBySiteId(k);
|
||||
if (siteObj != null) s.setNames(siteObj.getNames());
|
||||
if (siteObj != null) s.setNames(siteService.toDTO(siteObj).getNames());
|
||||
} catch (Exception ignored) {}
|
||||
// 配置信息
|
||||
SiteConfig latest = siteConfigMapper.selectLatestBySiteId(k);
|
||||
|
||||
Reference in New Issue
Block a user