|
@ -43,7 +43,7 @@ public class ModuleAuthenInterceptor implements HandlerInterceptor { |
|
|
if (endTime == null || endTime.isBefore(LocalDateTime.now())){ |
|
|
if (endTime == null || endTime.isBefore(LocalDateTime.now())){ |
|
|
response.setContentType("application/json;charset=utf-8"); |
|
|
response.setContentType("application/json;charset=utf-8"); |
|
|
CommonResult result = new CommonResult<>(); |
|
|
CommonResult result = new CommonResult<>(); |
|
|
result.setCode(500); |
|
|
result.setCode(403); |
|
|
result.setMsg(String.format("【%s】模块权限到期,请联系服务商缴费", moduleName)); |
|
|
result.setMsg(String.format("【%s】模块权限到期,请联系服务商缴费", moduleName)); |
|
|
@Cleanup PrintWriter os = response.getWriter(); |
|
|
@Cleanup PrintWriter os = response.getWriter(); |
|
|
os.write(new JSONObject(result).toString()); |
|
|
os.write(new JSONObject(result).toString()); |
|
|