【修改】去除error500方法,全都替换为error

【修改】修改token过期,但是接口访问依然不返回登录页的bug
This commit is contained in:
zer0Black
2022-04-17 22:44:29 +08:00
parent 725a72a178
commit b5ac2c4a1b
27 changed files with 141 additions and 179 deletions
@@ -155,13 +155,13 @@ public class SysMessageTemplateController extends JeroController<SysMessageTempl
try {
map = (Map<String, String>) JSON.parse(msgParams.getTestData());
} catch (Exception e) {
return Result.error500("解析Json出错!");
return Result.error("解析Json出错!");
}
boolean is_sendSuccess = pushMsgUtil.sendMessage(msgParams.getMsgType(), msgParams.getTemplateCode(), map, msgParams.getReceiver());
if (is_sendSuccess) {
return Result.OK("发送消息任务添加成功!");
} else {
return Result.error500("发送消息任务添加失败!");
return Result.error("发送消息任务添加失败!");
}
}
}