fix:修复野马数据统计错误

This commit is contained in:
Doubly
2024-07-24 14:58:25 +08:00
parent f3a0cdba2e
commit 5a482b31bf
3 changed files with 5 additions and 4 deletions

View File

@@ -32,11 +32,12 @@
"name": "站点数据统计",
"description": "自动统计和展示站点数据。",
"labels": "站点,仪表板",
"version": "3.9.1",
"version": "3.9.2",
"icon": "statistic.png",
"author": "lightolly",
"level": 2,
"history": {
"v3.9.2": "修复YemaPT的上传下载统计错误",
"v3.9.1": "修复mteam域名地址",
"v3.9": "修复YemaPT站点数据统计",
"v3.8": "适配m-team Api地址变化",

View File

@@ -43,7 +43,7 @@ class SiteStatistic(_PluginBase):
# 插件图标
plugin_icon = "statistic.png"
# 插件版本
plugin_version = "3.9.1"
plugin_version = "3.9.2"
# 插件作者
plugin_author = "lightolly"
# 作者主页

View File

@@ -62,8 +62,8 @@ class TYemaSiteUserInfo(ISiteUserInfo):
self.user_level = user_info.get("level")
self.join_at = StringUtils.unify_datetime_str(user_info.get("registerTime"))
self.upload = user_info.get('uploadSize')
self.download = user_info.get('downloadSize')
self.upload = user_info.get('promotionUploadSize')
self.download = user_info.get('promotionDownloadSize')
self.ratio = round(self.upload / (self.download or 1), 2)
self.bonus = user_info.get("bonus")
self.message_unread = 0