From b87283c1df02a52f19493bf9f0d6b16ca636a4e6 Mon Sep 17 00:00:00 2001 From: jieqiyue <7888467+qiyuejie@user.noreply.gitee.com> Date: Mon, 20 Sep 2021 03:05:21 +0000 Subject: [PATCH] =?UTF-8?q?=E7=9A=84=E8=8C=83=E5=BE=B7=E8=90=A8=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xiaoju/uemc/tinyid/server/controller/IdContronller.java | 1 + 1 file changed, 1 insertion(+) 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 ea981c1..048fe6b 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()); -- Gitee