| | |
| | | |
| | | /** |
| | | * Initiate a log upload request to the gateway. |
| | | * 向网关发起日志上传请求。 |
| | | * @return |
| | | */ |
| | | @PostMapping("/{workspace_id}/devices/{device_sn}/logs") |
| | |
| | | URL url = deviceLogsService.getLogsFileUrl(logsId, fileId); |
| | | return ResponseResult.success(url.toString()); |
| | | } catch (Exception e) { |
| | | log.error("Failed to get the logs file download address."); |
| | | log.error("获取日志文件下载地址失败"); |
| | | e.printStackTrace(); |
| | | } |
| | | return ResponseResult.error("Failed to get the logs file download address."); |
| | | return ResponseResult.error("获取日志文件下载地址失败"); |
| | | } |
| | | } |