diff --git a/paas2/esb/components/bk/apisv2/usermanage/usermanage_component.py b/paas2/esb/components/bk/apisv2/usermanage/usermanage_component.py index 0519333c1..8933be710 100644 --- a/paas2/esb/components/bk/apisv2/usermanage/usermanage_component.py +++ b/paas2/esb/components/bk/apisv2/usermanage/usermanage_component.py @@ -30,6 +30,8 @@ def handle(self): request_info = self.get_request_info(extra_params=extra_params) + # bk-user 要求 app_code 不能为空,而 cmsi tools 调用此组件时,未传递 app_code, + # 为更好地兼容 cmsi 作为自定义组件的场景,值为空时替换为网关的 app_code if not self.request.app_code: self.request.app_code = getattr(settings, "BK_APP_CODE", "")