main
HuangHai 3 months ago
parent e801fa8481
commit 98f827eff7

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

Loading…
Cancel
Save