This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.tiesheng.springboot-parent</groupId>
|
||||
<artifactId>springboot-parent</artifactId>
|
||||
<version>2.0.25</version>
|
||||
<version>2.0.26</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>springboot-util</artifactId>
|
||||
|
||||
@@ -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