From 1b4e0a00f3e00775c09a524965435b7eb39801cf Mon Sep 17 00:00:00 2001 From: qi Date: Fri, 17 Apr 2020 14:55:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ajax=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/web/FileSystemController.java | 2 +- src/main/java/com/lq/cms/web/LoginController.java | 4 ++-- src/main/java/com/lq/cms/web/sys/PermissionController.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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;