refactor(bcrypt): 重构 BCrypt.kt 文件

- 将 BCrypt 对象中的函数转换为顶级函数
- 添加 @JvmName 注解以自定义 JVM 方法名
- 更新相关文件中的导入和引用
- 调整 DateTime 类的 parse 和 format 方法
- 优化 StringUtils 中的 isEmpty 方法
This commit is contained in:
2025-09-17 21:15:39 +08:00
parent 0f5748d55d
commit 58806e85f1
8 changed files with 75 additions and 47 deletions
@@ -16,7 +16,7 @@
* ProjectName mingli-utils
* ModuleName mingli-utils.main
* CurrentFile UUID.kt
* LastUpdate 2025-09-17 11:04:08
* LastUpdate 2025-09-17 16:27:32
* UpdateUser MingLiPro
*/
@@ -183,7 +183,6 @@ class UUID : Serializable {
@JvmStatic
fun getV7(): UUID {
val instant = DateTime.now().toMillisecondTime()
println(instant.toString(16))
val buffer = ByteBuffer.allocate(16)
buffer.putInt((instant shr 16).toInt())
buffer.putShort((instant).toShort())