This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user