Skip to content

Commit

Permalink
文章删除bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NiccoloTang committed Aug 30, 2016
1 parent ef6161e commit 90ea79f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public JsonResult addOrUpdate(@ModelAttribute WebPage webPage) throws MyExceptio
@RequestMapping("/webPage/delete.do")
@ResponseBody
public JsonResult delete(@ModelAttribute WebPage webPage) throws MyException, IOException{
Tools.hasAuth(WebPageType.valueOf(webPage.getType()).name() + "_" + Const.MODULEID, webPage.getModuleId());
model = webPageService.get(webPage.getId());
Tools.hasAuth(WebPageType.valueOf(model.getType()).name() + "_" + Const.MODULEID, model.getModuleId());
if(model.getCanDelete()!=1){
throw new MyException("000009");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ public class FrontMockController extends BaseController<Interface>{

@Autowired
private IInterfaceService interfaceService;
@Autowired
private IDataCenterService dataCenterService;
@Autowired
private ICacheService cacheService;

@RequestMapping("/trueExam.do")
@ResponseBody
Expand Down

0 comments on commit 90ea79f

Please sign in to comment.