diff --git a/src/main/java/com/lq/cms/web/FileSystemController.java b/src/main/java/com/lq/cms/web/FileSystemController.java index b556502..f7841ed 100755 --- a/src/main/java/com/lq/cms/web/FileSystemController.java +++ b/src/main/java/com/lq/cms/web/FileSystemController.java @@ -34,7 +34,7 @@ public class FileSystemController extends BaseController{ @RequestMapping(value = "/upload",method = RequestMethod.POST) @ResponseBody public Object fileUpload(@RequestParam("files")MultipartFile[] files, HttpServletRequest request) throws IOException { - AjaxResult ajaxResult = this.getAjaxResult(); + AjaxResult ajaxResult = AjaxResult.getSuccessInstance(); Date nowTime=new Date(); if (files!=null&&files.length>0){ for (MultipartFile file:files){ diff --git a/src/main/java/com/lq/cms/web/LoginController.java b/src/main/java/com/lq/cms/web/LoginController.java index 97449b0..2c31138 100755 --- a/src/main/java/com/lq/cms/web/LoginController.java +++ b/src/main/java/com/lq/cms/web/LoginController.java @@ -49,7 +49,7 @@ public class LoginController extends BaseController{ @ResponseBody @PostMapping(value = "/doLogin") public Object doLogin(String loginName, String password, HttpSession session,String authCode,Boolean rememberMe){ - AjaxResult ajaxResult= this.getAjaxResult(); + AjaxResult ajaxResult= AjaxResult.getSuccessInstance(); String strCode=(String) session.getAttribute("strCode"); session.setAttribute("strCode",null); //验证码不正确 @@ -83,7 +83,7 @@ public class LoginController extends BaseController{ @ResponseBody @RequestMapping("/sendEmail") public Object sendEmail(String email){ - AjaxResult ajaxResult = this.getAjaxResult(); + AjaxResult ajaxResult = AjaxResult.getSuccessInstance(); // try { //// mailService.sendMail("qi_liang_gz@163.com",email,"忘记密码","重新设置网址为http://www.baidu.com"); // } catch (AddressException e) { diff --git a/src/main/java/com/lq/cms/web/sys/PermissionController.java b/src/main/java/com/lq/cms/web/sys/PermissionController.java index 7759e54..37411b8 100644 --- a/src/main/java/com/lq/cms/web/sys/PermissionController.java +++ b/src/main/java/com/lq/cms/web/sys/PermissionController.java @@ -69,7 +69,7 @@ public class PermissionController extends BaseController{ @ResponseBody @RequestMapping("/save") public Object save(SysPermissionVo vo){ - AjaxResult ajaxResult = this.getAjaxResult(); + AjaxResult ajaxResult = AjaxResult.getSuccessInstance(); SysPermission sysPermission = sysPermissionService.save(vo); ajaxResult.setData(sysPermission); return ajaxResult; @@ -78,7 +78,7 @@ public class PermissionController extends BaseController{ @ResponseBody @RequestMapping("/update") public Object update(SysPermissionVo vo){ - AjaxResult ajaxResult = this.getAjaxResult(); + AjaxResult ajaxResult = AjaxResult.getSuccessInstance(); SysPermission sysPermission = sysPermissionService.update(vo); ajaxResult.setData(sysPermission); return ajaxResult;