Browse Source

api次数逻辑优化

dsx 2 years ago
parent
commit
c34aa7e7a3

+ 1 - 0
src/main/java/com/fdkankan/openApi/service/system/impl/UserAuthInfoInfoServiceImpl.java

@@ -152,6 +152,7 @@ public class UserAuthInfoInfoServiceImpl extends ServiceImpl<IUserAuthInfoMapper
             redisUtil.del(String.format(RedisKey.API_METHOD_COUNT, appKey));
             redisUtil.del(String.format(RedisKey.API_METHOD_COUNT, appKey));
             return;
             return;
         }
         }
+        redisUtil.setRemove(RedisKey.API_METHOD_COUNT_INFINITE, appKey);
         redisUtil.incr(String.format(RedisKey.API_METHOD_COUNT, appKey), count);
         redisUtil.incr(String.format(RedisKey.API_METHOD_COUNT, appKey), count);
     }
     }