From 23a2e2f472222cac76d737315134eada0ddbb025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Mon, 17 Mar 2025 10:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E4=B8=AA=E8=8E=B7=E5=8F=96url?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/account/service/impl/ShopSongServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopSongServiceImpl.java b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopSongServiceImpl.java index 9fae7740b..0e4a4dc42 100644 --- a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopSongServiceImpl.java +++ b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopSongServiceImpl.java @@ -56,8 +56,13 @@ public class ShopSongServiceImpl extends ServiceImpl i }else { code = RandomStringUtils.randomAlphanumeric(12); redisService.set(key, code); - redisService.set(key, shopId); } return code; } + + public static void main(String[] args) { + String string = RandomStringUtils.randomAlphanumeric(12); + System.out.println(string); + + } }