main
黄海 2 years ago
parent 1391154d21
commit e3518f7dd7

@ -25,7 +25,7 @@ public class RepeatIntercetpor implements Interceptor {
// 如果未调用过或是时间差超过timeOut 则继续执行,否则提醒用户不要重复提交
if (o != null && now - Long.parseLong(o.toString()) <= timeOut) {
inv.getController().renderJson(new Record().set("message", "请不要重复提交"));
inv.getController().renderJson(new Record().set("message", "请不要重复提交!"));
} else {
RedisKit.Set(key, String.valueOf(now));
RedisKit.Expire(key, timeOut * 10);

Loading…
Cancel
Save