diff --git a/apps/common/sdk/im/feishu/__init__.py b/apps/common/sdk/im/feishu/__init__.py index ef3a419b6..087a2fb88 100644 --- a/apps/common/sdk/im/feishu/__init__.py +++ b/apps/common/sdk/im/feishu/__init__.py @@ -30,7 +30,7 @@ class URL: return f'{self.host}/open-apis/auth/v3/tenant_access_token/internal/' @property - def get_userinfo_by_code(self): + def get_user_info_by_code(self): return f'{self.host}/open-apis/authen/v1/access_token' @property @@ -106,7 +106,7 @@ class FeiShu(RequestMixin): 'code': code } - data = self._requests.post(URL().get_userinfo_by_code, json=body, check_errcode_is_0=False) + data = self._requests.post(URL().get_user_info_by_code, json=body, check_errcode_is_0=False) self._requests.check_errcode_is_0(data) return data['data']['user_id'], data['data']