This commit is contained in:
@@ -47,6 +47,7 @@ public class HandlerConfig {
|
|||||||
StatisticSubscriberHandler statisticSubscriberHandler,
|
StatisticSubscriberHandler statisticSubscriberHandler,
|
||||||
StatisticTokenHandler statisticTokenHandler,
|
StatisticTokenHandler statisticTokenHandler,
|
||||||
StatisticIncomeHandler statisticIncomeHandler,
|
StatisticIncomeHandler statisticIncomeHandler,
|
||||||
|
SummaryStatisticHandler summaryStatisticHandler,
|
||||||
MonitoringStatisticHandler monitoringStatisticHandler
|
MonitoringStatisticHandler monitoringStatisticHandler
|
||||||
|
|
||||||
) {
|
) {
|
||||||
@@ -87,6 +88,7 @@ public class HandlerConfig {
|
|||||||
map.put(30025, statisticTokenHandler);
|
map.put(30025, statisticTokenHandler);
|
||||||
map.put(30026, statisticIncomeHandler);
|
map.put(30026, statisticIncomeHandler);
|
||||||
map.put(30027, monitoringStatisticHandler);
|
map.put(30027, monitoringStatisticHandler);
|
||||||
|
map.put(30028, summaryStatisticHandler);
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package ru.soune.nocopy.handler;
|
package ru.soune.nocopy.handler;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@@ -15,7 +14,6 @@ import ru.soune.nocopy.service.statistic.ViolationStatisticService;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class StatisticViolationHandler implements RequestHandler {
|
public class StatisticViolationHandler implements RequestHandler {
|
||||||
|
|
||||||
private final ObjectMapper objectMapper;
|
|
||||||
private final ViolationStatisticService statisticService;
|
private final ViolationStatisticService statisticService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -391,7 +391,6 @@ public class FileUploadServiceImpl implements FileUploadService {
|
|||||||
session.getUserId());
|
session.getUserId());
|
||||||
|
|
||||||
File file = new File(finalFilePath);
|
File file = new File(finalFilePath);
|
||||||
// File file = cloudStorageService.readFileFromStorageByPath(finalFilePath);
|
|
||||||
|
|
||||||
if (session.getFileType().startsWith("audio") && !isWavFile(file)) {
|
if (session.getFileType().startsWith("audio") && !isWavFile(file)) {
|
||||||
session.setStatus(UploadStatus.FAILED);
|
session.setStatus(UploadStatus.FAILED);
|
||||||
|
|||||||
Reference in New Issue
Block a user