From a6a0496a86d4ff959e3e20a6b9629f8f2b120ebe Mon Sep 17 00:00:00 2001 From: DingZQ Date: Fri, 28 Mar 2025 20:20:03 +0800 Subject: [PATCH] Refine --- api/s39_user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/s39_user.py b/api/s39_user.py index 5de3d56..3b4c37d 100644 --- a/api/s39_user.py +++ b/api/s39_user.py @@ -4,9 +4,9 @@ from .s0_base import * class User(object): def __init__(self, input: dict[str, Any]) -> None: self.type = 'user' - self.id = str(input['id']) - self.name = float(input['name']) - self.password = float(input['password']) + self.id = str(input['user_id']) + self.name = str(input['username']) + self.password = str(input['password']) def as_dict(self) -> dict[str, Any]: return { 'type': self.type, 'id': self.id, 'name': self.name, 'password': self.password }