From 026f4d4912e7ecd7721c95823222f0ad8fc64f0f Mon Sep 17 00:00:00 2001 From: jlzhangyx5 <1254353766@qq.com> Date: Mon, 28 Aug 2023 14:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=9B=A0=E7=B4=A0UUID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BizShortMessageServiceImpl.java | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/service/impl/BizShortMessageServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/service/impl/BizShortMessageServiceImpl.java index f718ebb..17d0874 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/service/impl/BizShortMessageServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/service/impl/BizShortMessageServiceImpl.java @@ -25,6 +25,7 @@ import java.nio.charset.StandardCharsets; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; +import java.util.UUID; import java.util.concurrent.TimeUnit; /** @@ -56,8 +57,7 @@ public class BizShortMessageServiceImpl extends BaseServiceImpl= len) + { + return null; + } + + String uuid = getUUID(); + System.out.println(uuid); + StringBuffer str = new StringBuffer(); + + for (int i = 0; i < len; i++) + { + str.append(uuid.charAt(i)); + } + + return str.toString(); } }