Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-smile committed Apr 11, 2022
1 parent 2c41074 commit 2a9c9c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")

Expand Down

0 comments on commit 2a9c9c2

Please sign in to comment.