:bug:修复代码问题

This commit is contained in:
hello-hao
2022-04-07 10:35:56 +08:00
parent 95889c42ef
commit 6083ae97a3
3 changed files with 4 additions and 4 deletions
@@ -267,7 +267,7 @@ public class IndexController {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();
if(null!=user){
if(user.getId()!=image.getUserid()){
if(!user.getId().equals(image.getUserid())){
msg.setInfo("删除失败,该图片不允许你执行操作");
msg.setCode("100403");
return msg;