From 3d22751c7a2a84b4334b2f4af07505261a9922d8 Mon Sep 17 00:00:00 2001 From: tickstep Date: Thu, 11 Nov 2021 23:30:27 +0800 Subject: [PATCH] format file tag --- internal/config/utils.go | 4 ++-- internal/functions/pandownload/download_task_unit.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/config/utils.go b/internal/config/utils.go index 9f9000f..b34d6bb 100644 --- a/internal/config/utils.go +++ b/internal/config/utils.go @@ -75,7 +75,7 @@ func EncryptString(text string) string { return "" } d := []byte(text) - key := []byte(ids.GetUniqueId("cloudpan189", 16)) + key := []byte(ids.GetUniqueId("aliyunpan", 16)) r, e := crypto.EncryptAES(d, key) if e != nil { return text @@ -98,7 +98,7 @@ func DecryptString(text string) string { // use the machine unique id as the key // but in some OS, this key will be changed if you reinstall the OS - key := []byte(ids.GetUniqueId("cloudpan189", 16)) + key := []byte(ids.GetUniqueId("aliyunpan", 16)) r, e := crypto.DecryptAES(d, key) if e != nil { return text diff --git a/internal/functions/pandownload/download_task_unit.go b/internal/functions/pandownload/download_task_unit.go index 5779ad3..94249ff 100644 --- a/internal/functions/pandownload/download_task_unit.go +++ b/internal/functions/pandownload/download_task_unit.go @@ -67,7 +67,7 @@ const ( // DefaultPrintFormat 默认的下载进度输出格式 DefaultPrintFormat = "\r[%s] ↓ %s/%s %s/s in %s, left %s ............" //DownloadSuffix 文件下载后缀 - DownloadSuffix = ".cloudpan189-downloading" + DownloadSuffix = ".aliyunpan-downloading" //StrDownloadInitError 初始化下载发生错误 StrDownloadInitError = "初始化下载发生错误" // StrDownloadFailed 下载文件失败