优化
This commit is contained in:
@@ -14,8 +14,8 @@ def send_dingding_alert(context):
|
|||||||
http_hook = HttpHook(method="POST", http_conn_id="dingding_webhook")
|
http_hook = HttpHook(method="POST", http_conn_id="dingding_webhook")
|
||||||
http_hook.run(
|
http_hook.run(
|
||||||
endpoint="robot/send",
|
endpoint="robot/send",
|
||||||
data=message,
|
data=message.encode('utf-8'),
|
||||||
headers={"Content-Type": "application/json"}
|
headers={"Content-Type": "application/json;charset=utf-8"}
|
||||||
)
|
)
|
||||||
print("success")
|
print("success")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user