提交 a0b8fa6f 编写于 作者: 街头小贩's avatar 街头小贩 提交者: Gitee

修正手动结束惩罚时消息提示

上级 86c4bd0b
......@@ -122,9 +122,12 @@ public class AdminMemberPenalizeRecordsController {
MemberSessionBean mbean,
HttpServletRequest request,
Model model) {
boolean symbol = memberPenalizeRecordsService.expired(id).orElse(false);
if (symbol) {
return TipMessage.ofSuccess("惩罚手动过期成功");
try{
if (memberPenalizeRecordsService.expired(id).orElse(false)) {
return TipMessage.ofSuccess("惩罚手动过期成功");
}
}catch(IllegalArgumentException | IllegalStateException e){
return TipMessage.ofError(e.getMessage());
}
return TipMessage.ofError("操作失败");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册