Commit 7a596b5f by 墨竹

Merge remote-tracking branch 'origin/developer' into developer

parents 59a395b9 d1605e23
......@@ -466,7 +466,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
private String limitIp(HmQrcodeBO hm) {
String ipKey = "hmadd:limit:ip";
int ipLimitCount = 1;
int ipLimitCount = 200;
RRateLimiter rateLimiter = RedisUtil.getRedisClient().getRateLimiter(ipKey);
rateLimiter.trySetRate(RateType.OVERALL, ipLimitCount, 1, RateIntervalUnit.SECONDS);
if (rateLimiter.tryAcquire()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment