🚑 修复土地等级绘制出错的BUG
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
@@ -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 = ?",
|
||||
|
||||
Reference in New Issue
Block a user