update
This commit is contained in:
@@ -291,6 +291,7 @@ class MiaoStarsBasicApi:
|
||||
"""获取用户头像"""
|
||||
# Cloudreve V4 获取用户信息以获取头像URL
|
||||
user_info = self.getUserInfo()
|
||||
logger.info(f"用户信息API返回:{user_info}")
|
||||
if user_info.get("code") != 0:
|
||||
return QPixmap(":app/images/logo.png")
|
||||
|
||||
@@ -326,7 +327,7 @@ class MiaoStarsBasicApi:
|
||||
|
||||
# 转换响应格式
|
||||
if isinstance(r, dict):
|
||||
return {"code": 0, "data": r}
|
||||
return r
|
||||
else:
|
||||
return {"code": -1, "msg": "获取用户信息失败"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user