This commit is contained in:
沈健
2025-04-23 15:47:44 +08:00
parent e5ceaddfc4
commit 9962cf5ef3
+2 -2
View File
@@ -14,8 +14,8 @@ def send_dingding_alert(context):
http_hook = HttpHook(method="POST", http_conn_id="dingding_webhook")
http_hook.run(
endpoint="robot/send",
data=message,
headers={"Content-Type": "application/json"}
data=message.encode('utf-8'),
headers={"Content-Type": "application/json;charset=utf-8"}
)
print("success")