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