Skip to content

Commit

Permalink
Merge pull request #1213 from hanshuaikang/feature/develop_by_han
Browse files Browse the repository at this point in the history
minor: 新增环境标识信息
  • Loading branch information
hanshuaikang authored Oct 17, 2023
2 parents 83d6e55 + a1d198b commit 82097c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def my_before_proxy_func(request, json_data, request_headers):
BKCHAT_CALLBACK_URL = os.environ.get("BKCHAT_CALLBACK_URL", "")
ITSM_SUMMARY_URL = os.environ.get("ITSM_SUMMARY_URL", "")
BKCHAT_ENV = os.environ.get("BKCHAT_ENV", None)
BKCHAT_ENV_FLAG = os.environ.get("BKCHAT_ENV_FLAG", "")


def redirect_func(request):
Expand Down
4 changes: 2 additions & 2 deletions itsm/component/bkchat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@


def build_bkchat_summary(ticket):
title = "## 『ITSM』{}: {}".format(
RUNNING_ENV.get(settings.RUN_MODE, ""), ticket.title
title = "## 『ITSM-{}』{}: {}".format(
settings.BKCHAT_ENV_FLAG, RUNNING_ENV.get(settings.RUN_MODE, ""), ticket.title
)
content = title + "\n"
content += "**单号**: {}\n".format(ticket.sn)
Expand Down

0 comments on commit 82097c8

Please sign in to comment.