From b4b13b0aa994ce88fe6e6e26df7c456e7531dcbb Mon Sep 17 00:00:00 2001 From: Peng Peng Date: Thu, 23 Oct 2025 19:33:50 +0800 Subject: [PATCH] Update wizard.go --- cli/pkg/wizard/wizard.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cli/pkg/wizard/wizard.go b/cli/pkg/wizard/wizard.go index a27f4c99c..6432beac7 100644 --- a/cli/pkg/wizard/wizard.go +++ b/cli/pkg/wizard/wizard.go @@ -204,7 +204,7 @@ func (w *ActivationWizard) authRequestTerminusInfo() (string, error) { } // Build backup URL (usually terminus_url + '/api/olares-info') - url := fmt.Sprintf("%s/api/olares-info?t=%d", terminusURL, time.Now().UnixMilli()) + url := fmt.Sprintf("%s/bfl/info/v1/olares-info?t=%d", terminusURL, time.Now().UnixMilli()) client := &http.Client{ Timeout: 5 * time.Second, @@ -232,12 +232,15 @@ func (w *ActivationWizard) authRequestTerminusInfo() (string, error) { return "", fmt.Errorf("HTTP error %d: %s", resp.StatusCode, string(body)) } - var terminusInfo TerminusInfo - if err := json.Unmarshal(body, &terminusInfo); err != nil { + var response struct { + Data TerminusInfo `json:"data"` + } + + if err := json.Unmarshal(body, &response); err != nil { return "", fmt.Errorf("failed to parse response: %v", err) } - return terminusInfo.WizardStatus, nil + return response.Data.WizardStatus, nil } // performPasswordReset performs password reset - simplified version