From 35d048aa5c0eecd6a737c04278779b0720b0e3db Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期一, 04 十二月 2023 11:18:12 +0800 Subject: [PATCH] 6 --- zt/core/src/main/java/com/zt/modules/oss/controller/SysOssController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/zt/core/src/main/java/com/zt/modules/oss/controller/SysOssController.java b/zt/core/src/main/java/com/zt/modules/oss/controller/SysOssController.java index b6caf03..1df3347 100644 --- a/zt/core/src/main/java/com/zt/modules/oss/controller/SysOssController.java +++ b/zt/core/src/main/java/com/zt/modules/oss/controller/SysOssController.java @@ -8,6 +8,7 @@ package com.zt.modules.oss.controller; +import cn.hutool.core.convert.Convert; import com.zt.common.annotation.LogOperation; import com.zt.common.annotation.QueryParam; import com.zt.common.constant.Constant; @@ -127,7 +128,7 @@ //String id = fileId; String id = request.getParameter("fileId"); if (StringUtils.isNotEmpty(id)) { - SysOss oss = sysOssService.getById(Long.parseLong(id)); + SysOss oss = sysOssService.getById(Convert.toLong(id)); if (CloudChannel.LOCAL.getValue().equals(oss.getChannel())) { // 鏈湴 System.out.println(CloudChannel.LOCAL.getValue()); System.out.println(oss.getChannel()); -- Gitblit v1.9.1