mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复变量取值错误 (#827)
This commit is contained in:
parent
98938b8ccf
commit
ed54ae632b
|
|
@ -45,7 +45,7 @@ class SystemSerializer(ApiMixin, serializers.Serializer):
|
|||
@staticmethod
|
||||
def get_profile():
|
||||
version = os.environ.get('MAXKB_VERSION')
|
||||
return {'version': version, 'IS_XPACK': hasattr(settings, 'XPACK_LICENSE_IS_VALID'),
|
||||
return {'version': version, 'IS_XPACK': hasattr(settings, 'IS_XPACK'),
|
||||
'XPACK_LICENSE_IS_VALID': (settings.XPACK_LICENSE_IS_VALID if hasattr(settings,
|
||||
'XPACK_LICENSE_IS_VALID') else False)}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue