fix 数据共享开关

This commit is contained in:
jxxghp
2024-05-06 12:37:51 +08:00
parent 90d5a8b0c9
commit ed119b7beb
3 changed files with 14 additions and 2 deletions

View File

@ -81,6 +81,8 @@ class PluginHelper(metaclass=Singleton):
"""
获取插件安装统计
"""
if not settings.PLUGIN_STATISTIC_SHARE:
return {}
res = RequestUtils(timeout=10).get_res(self._install_statistic)
if res and res.status_code == 200:
return res.json()