From 282224df28ee5f7da8d3ad320cfb7ede49f7193f Mon Sep 17 00:00:00 2001 From: zhangchenhao Date: Thu, 15 May 2025 10:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/cert/deploy/btpanel.go | 2 +- backend/internal/workflow/executor.go | 1 - backend/migrations/init.go | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/internal/cert/deploy/btpanel.go b/backend/internal/cert/deploy/btpanel.go index d689e45..f14751d 100644 --- a/backend/internal/cert/deploy/btpanel.go +++ b/backend/internal/cert/deploy/btpanel.go @@ -79,7 +79,7 @@ func RequestBt(data *url.Values, method, providerID, requestUrl string) (map[str var res map[string]interface{} err = json.Unmarshal(body, &res) if err != nil { - return nil, fmt.Errorf("返回值解析失败: %v", err) + return nil, fmt.Errorf("返回值解析失败: %v,%s", err, string(body)) } if res["status"] != nil && !res["status"].(bool) { diff --git a/backend/internal/workflow/executor.go b/backend/internal/workflow/executor.go index 18e735a..b531195 100644 --- a/backend/internal/workflow/executor.go +++ b/backend/internal/workflow/executor.go @@ -107,7 +107,6 @@ func deploy(params map[string]any) (any, error) { case string: skip, _ = strconv.Atoi(v) } - fmt.Println("xxxxxxxxxxxxxxxx", skip) if skip == 1 { if len(deployData) > 0 { beSha256, ok := deployData[0]["cert_hash"].(string) diff --git a/backend/migrations/init.go b/backend/migrations/init.go index 78f2adb..d0e730b 100644 --- a/backend/migrations/init.go +++ b/backend/migrations/init.go @@ -41,6 +41,8 @@ func init() { defer db.Close() // 创建表 _, err = db.Exec(` + PRAGMA journal_mode=WAL; + create table IF NOT EXISTS _accounts ( id integer not null