mirror of
https://github.com/Hello-hao/Tbed.git
synced 2026-09-20 03:18:28 +00:00
update:调整数据类型,删除逻辑
feat:sout在log文件中显示
This commit is contained in:
@@ -472,9 +472,9 @@ public class AdminController {
|
||||
msg.setInfo("为获取到图像信息");
|
||||
return msg;
|
||||
}
|
||||
List<Integer> imgIds = new ArrayList<Integer>();
|
||||
List<Long> imgIds = new ArrayList<Long>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
Integer imgid = Integer.valueOf(split[i]);
|
||||
Long imgid = Long.valueOf(split[i]);
|
||||
Images image = imgService.selectByPrimaryKey(imgid);
|
||||
if (!subject.hasRole("admin")) {
|
||||
if (!image.getUserid().equals(user.getId())) {
|
||||
@@ -486,7 +486,7 @@ public class AdminController {
|
||||
if (imgIds.size() == 0) {
|
||||
msg.setCode("110404");
|
||||
} else {
|
||||
deleimages.dele(uuid, imgIds.stream().toArray(Integer[]::new));
|
||||
deleimages.dele(uuid, imgIds.stream().toArray(Long[]::new));
|
||||
msg.setCode("200");
|
||||
}
|
||||
return msg;
|
||||
|
||||
@@ -42,10 +42,10 @@ public class IndexController {
|
||||
|
||||
@RequestMapping(value = "/")
|
||||
public String Welcome(Model model, HttpServletRequest httpServletRequest) {
|
||||
model.addAttribute("name", "服务端程序");
|
||||
model.addAttribute("version", "20230316");
|
||||
model.addAttribute("name", "服务端程序(开源版)");
|
||||
model.addAttribute("version", "20230318");
|
||||
model.addAttribute("ip", GetIPS.getIpAddr(httpServletRequest));
|
||||
model.addAttribute("links", "www.hellohao.cn");
|
||||
model.addAttribute("links", "https://github.com/Hello-hao/tbed");
|
||||
return "welcome";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user