Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 新增通知渠道拓展 #7545 #7607

Merged

Conversation

guohelu
Copy link
Collaborator

@guohelu guohelu commented Nov 12, 2024

No description provided.

config/default.py Outdated Show resolved Hide resolved
gcloud/shortcuts/message/send_msg.py Outdated Show resolved Hide resolved
gcloud/shortcuts/message/__init__.py Outdated Show resolved Hide resolved
return "{}/{}".format(BK_CHAT_API_ENTRY, "prod/im/api/v1/send_msg")

def send(self, executor, notify_type, notify_info, receivers, title, content, email_content=None):
# 兼容旧数据
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里看上去可以不需要?在 send_message 已经兼容了,bkchat 直接用 content 应该就可以?


return True

def send_bkchat(self, notify, content=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content 必传

@normal-wls normal-wls merged commit c55800c into TencentBlueKing:feature_ip_selector_master Nov 13, 2024
5 checks passed
@guohelu guohelu deleted the new_branch branch December 17, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants