From 7192437863b63fb6e7fc83faae4feffb5ac71e8c Mon Sep 17 00:00:00 2001 From: tbphp Date: Fri, 9 May 2025 00:20:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/channel-billing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/channel-billing.go b/controller/channel-billing.go index 015b4323..2bda0fd2 100644 --- a/controller/channel-billing.go +++ b/controller/channel-billing.go @@ -108,7 +108,7 @@ type DeepSeekUsageResponse struct { } `json:"balance_infos"` } -type OpenRouterResponse struct { +type OpenRouterCreditResponse struct { Data struct { TotalCredits float64 `json:"total_credits"` TotalUsage float64 `json:"total_usage"` @@ -294,7 +294,7 @@ func updateChannelOpenRouterBalance(channel *model.Channel) (float64, error) { if err != nil { return 0, err } - response := OpenRouterResponse{} + response := OpenRouterCreditResponse{} err = json.Unmarshal(body, &response) if err != nil { return 0, err