fix(设备中心):航线文件md5查询接口返回格式bug修复
This commit is contained in:
+4
-4
@@ -68,16 +68,16 @@ public class LineFileController {
|
||||
*/
|
||||
@Operation(summary = "查询")
|
||||
@GetMapping("/sign/{id}")
|
||||
public Result findLineSignById(@PathVariable String id) {
|
||||
public String findLineSignById(@PathVariable String id) {
|
||||
try {
|
||||
LineFile model = lineFileService.findLineFileByWaylineId(id);
|
||||
if (model == null) {
|
||||
return Result.failed("未找到对应的航线文件信息");
|
||||
return "";
|
||||
}
|
||||
return Result.succeed(model.getSign(), "查询成功");
|
||||
return model.getSign();
|
||||
} catch (Exception e) {
|
||||
log.error("查询航线文件签名失败,id: {}", id, e);
|
||||
return Result.failed("查询航线文件签名失败:" + e.getMessage());
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user