修复硬编码中文,迁移废弃的 uuid 依赖

- flag.go: -local/-perf 参数改用 i18n.GetText,checkParameterConflicts 改用 i18n.Tr
- 补齐中英文 locale 中 flag_local_plugin/flag_perf_stats/param_local_multi_plugin
- satori/go.uuid 迁移为 google/uuid (satori 已废弃)
- CI 补充 lint Go 版本说明
This commit is contained in:
ZacharyZcR
2026-05-18 02:43:45 +08:00
parent 72403ebb32
commit 2f2b30763c
7 changed files with 21 additions and 11 deletions
+3 -2
View File
@@ -8,7 +8,7 @@ import (
"encoding/base64"
"io"
uuid "github.com/satori/go.uuid"
"github.com/google/uuid"
)
var (
@@ -55,7 +55,8 @@ func AESCBCEncrypt(shirokey string) string {
paddedContent := Padding(Content, block.BlockSize())
// 生成随机IV
iv := uuid.NewV4().Bytes()
u := uuid.New()
iv := u[:]
// 创建CBC加密器
blockMode := cipher.NewCBCEncrypter(block, iv)