From a1defc9affaadb3ce5825060809f37c106de61da Mon Sep 17 00:00:00 2001 From: ZhuoQinghui <1302344380@qq.com> Date: Thu, 31 Oct 2024 14:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- src/command.go | 2 +- src/config.go | 4 ++-- src/token.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index beaa632..15a3b12 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import ( "acme-client/src" "bufio" - "github.com/go-acme/lego/v4/log" + "log" "os" "strings" ) diff --git a/src/command.go b/src/command.go index 4fd046a..77e33cc 100644 --- a/src/command.go +++ b/src/command.go @@ -135,7 +135,7 @@ func getCert() { } } if !isDoGet { - log.Println("日志文件已存在, 无需更新.\n如果需要强制更新, 请使用命令: get -f") + fmt.Println("日志文件已存在, 无需更新.\n如果需要强制更新, 请使用命令: get -f") return } domainData, err := doGetCert(domain.Name) diff --git a/src/config.go b/src/config.go index b9ae8e1..742f655 100644 --- a/src/config.go +++ b/src/config.go @@ -1,9 +1,9 @@ package src import ( - "github.com/go-acme/lego/v4/log" "github.com/go-acme/lego/v4/platform/config/env" "gopkg.in/yaml.v3" + "log" "os" ) @@ -26,7 +26,7 @@ func InitConfig() { _, err := os.Stat(confFile) if os.IsNotExist(err) { - log.Infof("客户端配置文件不存在,自动创建默认配置文件") + log.Println("客户端配置文件不存在,自动创建默认配置文件") conf := defaultConfig() file, err := os.Create(confFile) if err != nil { diff --git a/src/token.go b/src/token.go index 3f0873a..33a9436 100644 --- a/src/token.go +++ b/src/token.go @@ -5,7 +5,7 @@ import ( "crypto/rand" "encoding/base64" "encoding/hex" - "github.com/go-acme/lego/v4/log" + "log" "math/big" )