From 75155656608b4a0c80c776c4f275733c6d79ec15 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 23 Nov 2026 19:26:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20=E7=95=8C=E9=9D=A2=E6=96=87?= =?UTF-8?q?=E6=A1=88=E3=80=8C=E5=8A=A0=E5=A3=B3/=E5=8A=A0=E5=9B=BA?= =?UTF-8?q?=E3=80=8D=E7=BB=9F=E4=B8=80=E6=94=B9=E4=B8=BA=E3=80=8C=E4=BA=91?= =?UTF-8?q?=E7=AB=AF=E5=8A=A0=E5=AF=86=E3=80=8D=EF=BC=88=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E5=8F=8C=E8=AF=AD=20+=20=E8=B7=AF=E7=94=B1=E6=A0=87=E9=A2=98?= =?UTF-8?q?=20+=20=E5=90=8E=E7=AB=AF=E6=8F=90=E7=A4=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/protect/pfx.go | 2 +- backend/internal/protect/protect.go | 2 +- backend/internal/protect/publish.go | 2 +- backend/internal/protect/task.go | 2 +- backend/internal/router/admin/signprofiles.go | 2 +- frontend/src/pages/admin/protect/index.vue | 6 ++-- frontend/src/pages/admin/versions/[id].vue | 2 +- frontend/src/plugins/i18n/en.json | 28 +++++++-------- frontend/src/plugins/i18n/zh.json | 34 +++++++++---------- frontend/src/router/routes.ts | 2 +- 10 files changed, 41 insertions(+), 41 deletions(-) diff --git a/backend/internal/protect/pfx.go b/backend/internal/protect/pfx.go index 54ef4cf..ee20da7 100644 --- a/backend/internal/protect/pfx.go +++ b/backend/internal/protect/pfx.go @@ -335,7 +335,7 @@ func ParsePFX(data []byte, password string) (PFXInfo, error) { case info.KeyCount == 1 && info.CertCount > 1: info.Note = fmt.Sprintf("含 %d 张证书(1 套私钥 + %d 张链上证书),签名会带完整证书链", info.CertCount, info.LooseCerts) case info.KeyCount > 1: - info.Note = fmt.Sprintf("含 %d 套可签名身份(私钥 %d 把),加壳时可任选其中一套", + info.Note = fmt.Sprintf("含 %d 套可签名身份(私钥 %d 把),云端加密时可任选其中一套", len(matched), info.KeyCount) } return info, nil diff --git a/backend/internal/protect/protect.go b/backend/internal/protect/protect.go index 29973a9..c114765 100644 --- a/backend/internal/protect/protect.go +++ b/backend/internal/protect/protect.go @@ -404,7 +404,7 @@ func (r *Runner) RunWithTask(task *model.ProtectTask, srcPath, outPath string, c // 内核驱动(.sys / 子系统 NATIVE):绝不能塞用户态验证壳,注进去驱动直接加载失败。 // 驱动要的是 Authenticode 签名,所以这里只签名、不注入。 if task.SignProfileID == nil { - return info, fmt.Errorf("内核驱动只能签名、不能加壳;请选择一张支持驱动签名用途的证书") + return info, fmt.Errorf("内核驱动只能签名、不能加密;请选择一张支持驱动签名用途的证书") } mat, merr := LoadMaterial(*task.SignProfileID, task.CertIdentity) if merr != nil { diff --git a/backend/internal/protect/publish.go b/backend/internal/protect/publish.go index 488a7d6..73ce4d3 100644 --- a/backend/internal/protect/publish.go +++ b/backend/internal/protect/publish.go @@ -32,7 +32,7 @@ type PublishOptions struct { func PublishAsVersion(taskID uint, opts PublishOptions) (*model.Version, error) { var task model.ProtectTask if err := database.DB.First(&task, taskID).Error; err != nil { - return nil, fmt.Errorf("加壳任务不存在") + return nil, fmt.Errorf("云端加密任务不存在") } if task.Status != "done" || task.OutputPath == "" { return nil, fmt.Errorf("任务尚未完成,无法生成版本") diff --git a/backend/internal/protect/task.go b/backend/internal/protect/task.go index 1e93b2e..c3c1fda 100644 --- a/backend/internal/protect/task.go +++ b/backend/internal/protect/task.go @@ -34,7 +34,7 @@ func createTask(app *model.Application, userID uint, srcName string, data []byte return nil, "", err } if det.Kind == KindPE && HasVfy(data) { - return nil, "", fmt.Errorf("这个文件已经是加壳后的产物(带 .vfy 节),请上传未加壳的原始程序") + return nil, "", fmt.Errorf("这个文件已经是云端加密后的产物(带 .vfy 节),请上传未加密的原始程序") } // 签名证书必须在建任务时就落库:execute 是 go 协程,事后 UPDATE 有窗口 // 被它读到 NULL,导致证书被静默忽略(任务照样成功,只是没重签)。 diff --git a/backend/internal/router/admin/signprofiles.go b/backend/internal/router/admin/signprofiles.go index 729ba8d..bf78bcd 100644 --- a/backend/internal/router/admin/signprofiles.go +++ b/backend/internal/router/admin/signprofiles.go @@ -200,7 +200,7 @@ func HandleCreateSignProfile(c *gin.Context) { msg := "证书已加密保存" if pfx.KeyCount > 1 { - msg = fmt.Sprintf("证书已保存:文件里含 %d 套可签名身份,加壳时可任选其中一套", pfx.KeyCount) + msg = fmt.Sprintf("证书已保存:文件里含 %d 套可签名身份,云端加密时可任选其中一套", pfx.KeyCount) } response.SuccessWithMessage(c, msg, gin.H{ "id": made.ID, diff --git a/frontend/src/pages/admin/protect/index.vue b/frontend/src/pages/admin/protect/index.vue index 1ee80f3..321e295 100644 --- a/frontend/src/pages/admin/protect/index.vue +++ b/frontend/src/pages/admin/protect/index.vue @@ -58,7 +58,7 @@ const statusFilter = ref('') // 按文件类型决定需要哪种证书:PE→windows,IPA→ios,APK/ELF 不吃证书 const fileKind = computed(() => { const n = (chosenFile.value?.name || '').toLowerCase() - // 内核驱动:.sys 只能签名、不能加壳(用户态壳注进内核模块会直接加载失败) + // 内核驱动:.sys 只能签名、不能加密(用户态壳注进内核模块会直接加载失败) if (n.endsWith('.sys')) return 'driver' if (n.endsWith('.exe') || n.endsWith('.dll')) return 'pe' if (n.endsWith('.ipa')) return 'ipa' @@ -247,7 +247,7 @@ function schedulePoll() { function pickFile(file: File | null | undefined) { if (!file) return - // 驱动 .sys 也走这条路(驱动只签名、不加壳) + // 驱动 .sys 也走这条路(驱动只签名、不加密) if (!/\.(exe|dll|sys|efi|apk|ipa)$/i.test(file.name)) { toast.error(t('admin.protect.onlyExe')) return @@ -535,7 +535,7 @@ onBeforeUnmount(() => { {{ certOptionsForFile.length ? t('admin.protect.signProfileHint') : t('admin.protect.signProfileEmpty') }}

- +
{{ t('admin.protect.themeLabel') }} diff --git a/frontend/src/pages/admin/versions/[id].vue b/frontend/src/pages/admin/versions/[id].vue index c1f9e8a..cc63a15 100644 --- a/frontend/src/pages/admin/versions/[id].vue +++ b/frontend/src/pages/admin/versions/[id].vue @@ -437,7 +437,7 @@ onMounted(() => {
- +
import('@/pages/admin/protect/index.vue'), - meta: { title: '加壳加固 - 管理后台' }, + meta: { title: '云端加密 - 管理后台' }, }, { path: 'sign-profiles',