publish 2.0.26
All checks were successful
/ local-deploy (push) Successful in 18s

This commit is contained in:
曾文豪
2025-04-22 13:41:17 +08:00
parent 6fdc69fc2d
commit 463ddf1b1e
11 changed files with 20 additions and 20 deletions

View File

@@ -102,7 +102,7 @@ public class TsCacheService {
*/
public void checkRepeat(String key, String value, int seconds) {
String s = get(key);
if (Objects.equals(s, value)) {
if (StrUtil.isNotEmpty(s) && Objects.equals(s, value)) {
throw new ApiException("操作频繁,请稍后再试");
}
put(key, value, seconds);