From 4cfd0ef0909e1ae690eb41c688990b5bb30f4317 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Mon, 5 Jan 2026 14:22:06 +0800 Subject: [PATCH] fix: stop converting Kimi balance and switch Qwen endpoint to business.aliyuncs.com --- modules/balance_client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/balance_client.py b/modules/balance_client.py index ebdb5e5..9eed330 100644 --- a/modules/balance_client.py +++ b/modules/balance_client.py @@ -93,12 +93,10 @@ def fetch_kimi_balance() -> Dict[str, Any]: cash = float(data.get("cash_balance", 0)) return { "success": True, - "currency": "USD", + "currency": payload.get("currency") or "CNY", "available": available, - "available_cny": round(available * USD_CNY_RATE, 2), "voucher": voucher, "cash": cash, - "rate": USD_CNY_RATE, "raw": payload, } except Exception as exc: # pragma: no cover @@ -170,7 +168,7 @@ def fetch_qwen_balance() -> Dict[str, Any]: # 按阿里云规范组装最终查询字符串(不可用 urlencode 的 quote_plus) query = "&".join(f"{_percent_encode(k)}={_percent_encode(v)}" for k, v in params.items()) - url = "https://bss.aliyuncs.com/?" + query + url = "https://business.aliyuncs.com/?" + query payload, err = _http_get(url) if err: