增加日志输出

This commit is contained in:
qaq
2025-08-15 20:26:31 +08:00
parent 3d20d633fe
commit 6dfe55a9f0
5 changed files with 10 additions and 48 deletions
@@ -143,25 +143,19 @@ public class FlowController extends BaseController {
return SUCCESS_RESPONSE;
}
try {
// 2. 尝试解密数据
String decryptedData = decryptIfNeeded(rawData, secret);
// 2. 尝试解密数据
String decryptedData = decryptIfNeeded(rawData, secret);
// 3. 解析为FlowDto列表
FlowDto flowDataList = JSONObject.parseObject(decryptedData, FlowDto.class);
if (Objects.equals(flowDataList.getN(), "web_api")) {
return SUCCESS_RESPONSE;
}
// 记录日志
log.info("节点上报流量数据{}", flowDataList);
// 4. 处理流量数据
return processFlowData(flowDataList);
} catch (Exception e) {
log.error("处理流量数据失败: {}", e.getMessage(), e);
// 3. 解析为FlowDto列表
FlowDto flowDataList = JSONObject.parseObject(decryptedData, FlowDto.class);
if (Objects.equals(flowDataList.getN(), "web_api")) {
return SUCCESS_RESPONSE;
}
// 记录日志
log.info("节点上报流量数据{}", flowDataList);
// 4. 处理流量数据
return processFlowData(flowDataList);
}
/**