From 8ebab64ed48804a200a068a265bbec773f6e7313 Mon Sep 17 00:00:00 2001 From: sylarchen1389 Date: Sun, 7 Dec 2025 13:51:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8E=E5=8F=B0=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=89=A3=E8=B4=B9=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/open_webui/routers/billing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/routers/billing.py b/backend/open_webui/routers/billing.py index 2774c8453c..ca97b6fba0 100644 --- a/backend/open_webui/routers/billing.py +++ b/backend/open_webui/routers/billing.py @@ -40,14 +40,14 @@ class RechargeRequest(BaseModel): """充值请求""" user_id: str = Field(..., description="用户ID") - amount: Decimal = Field(..., gt=0, description="充值金额(元)") + amount: int = Field(..., ne=0, description="充值/扣费金额(毫),1元 = 10000毫,正数充值,负数扣费") remark: str = Field(default="", description="备注") class RechargeResponse(BaseModel): """充值响应""" - balance: float = Field(..., description="充值后余额(元)") + balance: float = Field(..., description="充值后余额(毫),1元 = 10000毫") status: str = Field(..., description="账户状态")