【修改】去除error500方法,全都替换为error
【修改】修改token过期,但是接口访问依然不返回登录页的bug
This commit is contained in:
+2
-2
@@ -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("发送消息任务添加失败!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user