diff --git a/tinyid-server/src/main/java/com/xiaoju/uemc/tinyid/server/controller/IdContronller.java b/tinyid-server/src/main/java/com/xiaoju/uemc/tinyid/server/controller/IdContronller.java index ea981c18c30a745fea4d84b78f0c76b657f31090..048fe6b580d3a9d2a67dabbcd9d86031e1a56671 100755 --- a/tinyid-server/src/main/java/com/xiaoju/uemc/tinyid/server/controller/IdContronller.java +++ b/tinyid-server/src/main/java/com/xiaoju/uemc/tinyid/server/controller/IdContronller.java @@ -37,6 +37,7 @@ public class IdContronller { public Response> nextId(String bizType, Integer batchSize, String token) { Response> response = new Response<>(); Integer newBatchSize = checkBatchSize(batchSize); + if (!tinyIdTokenService.canVisit(bizType, token)) { response.setCode(ErrorCode.TOKEN_ERR.getCode()); response.setMessage(ErrorCode.TOKEN_ERR.getMessage());