Skip to content

Commit

Permalink
Merge pull request otale#158 from VilenEera/dev
Browse files Browse the repository at this point in the history
🦄 fix delete attach log field
  • Loading branch information
hellokaton authored Mar 14, 2017
2 parents e63c19a + c3576b8 commit f2ddc1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public RestResponse delete(@QueryParam Integer id, Request request) {
siteService.cleanCache(Types.C_STATISTICS);
String upDir = CLASSPATH.substring(0, CLASSPATH.length() - 1);
FileKit.delete(upDir + attach.getFkey());
logService.save(LogActions.DEL_ARTICLE, attach.getFkey(), request.address(), this.getUid());
logService.save(LogActions.DEL_ATTACH, attach.getFkey(), request.address(), this.getUid());
} catch (Exception e) {
String msg = "附件删除失败";
if (e instanceof TipException) msg = e.getMessage();
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/tale/dto/LogActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public interface LogActions {

String UP_INFO = "修改个人信息";

String DEL_ATTACH = "删除附件";

String DEL_ARTICLE = "删除文章";

String DEL_PAGE = "删除页面";
Expand Down

0 comments on commit f2ddc1f

Please sign in to comment.