diff --git a/apps/common/auth/authenticate.py b/apps/common/auth/authenticate.py index 74171f7dd..c5339b50c 100644 --- a/apps/common/auth/authenticate.py +++ b/apps/common/auth/authenticate.py @@ -41,7 +41,7 @@ class TokenAuth(TokenAuthentication): application_api_key = QuerySet(ApplicationApiKey).filter(secret_key=auth).first() if application_api_key is None: raise AppAuthenticationFailed(500, "secret_key 无效") - if not application_api_key.application.api_key_is_active: + if not application_api_key.is_active: raise AppAuthenticationFailed(500, "secret_key 无效") permission_list = [Permission(group=Group.APPLICATION, operate=Operate.USE, diff --git a/pyproject.toml b/pyproject.toml index d1ae05745..5447e83dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "smart-doc" +name = "maxkb" version = "0.1.0" description = "智能客服系统" authors = ["shaohuzhang1 "]