🚑 修复土地等级绘制出错的BUG

This commit is contained in:
2025-06-29 22:38:51 +08:00
parent f4e192ff27
commit e48bdf03da
5 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ class CUserDB(CSqlManager):
point (int): 农场币
Returns:
Union[bool, str]: False 表示失败,字符串表示成功信息
bool | str: False 表示失败,字符串表示成功信息
"""
nowStr = g_pToolManager.dateTime().date().today().strftime("%Y-%m-%d")
sql = (
@@ -55,7 +55,7 @@ class CUserDB(CSqlManager):
"""获取所有用户UID列表
Returns:
List[str]: 用户UID列表
list[str]: 用户UID列表
"""
cursor = await cls.m_pDB.execute("SELECT uid FROM user")
rows = await cursor.fetchall()
+2 -2
View File
@@ -244,7 +244,7 @@ class CUserSoilDB(CSqlManager):
soilIndex (int): 土地索引
Returns:
Optional[dict]: 记录存在返回字段-值字典,否则返回 None
dict: 记录存在返回字段-值字典,否则返回 None
"""
async with cls._transaction():
cursor = await cls.m_pDB.execute(
@@ -266,7 +266,7 @@ class CUserSoilDB(CSqlManager):
soilIndex (int): 土地索引
Returns:
Optional[dict]: 记录存在返回字段-值字典,否则返回 None
dict | None: 记录存在返回字段-值字典,否则返回 None
"""
cursor = await cls.m_pDB.execute(
"SELECT * FROM userSoil WHERE uid = ? AND soilIndex = ?",