[fix] solution/backend: Teams 카드 필수 필드 보완
웹훅 요청의 contentUrl 및 스키마 선언 누락을 공식 형식에 맞춤. HTTP 202와 채널 게시 성공을 구분하도록 검증 한계 기록. 검증: Teams 요청 형식 회귀 테스트 1건 통과. 워크플로 실제 수신은 별도 확인 필요.
This commit is contained in:
1 parent
3f47d5ecd2
commit
0f7d22750f
3 files changed
+35
-1
No files matched your search
@@ -26,7 +26,9 @@ async def send_alert(webhook_url: str, page_url: str, reason: str) -> bool:
|
||||
return False
|
||||
payload = {"type": "message", "attachments": [{
|
||||
"contentType": "application/vnd.microsoft.card.adaptive",
|
||||
"content": {"type": "AdaptiveCard", "version": "1.2", "body": [
|
||||
"contentUrl": None,
|
||||
"content": {"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
||||
"type": "AdaptiveCard", "version": "1.2", "body": [
|
||||
{"type": "TextBlock", "text": "Google 색인 확인 필요", "weight": "Bolder"},
|
||||
{"type": "TextBlock", "text": page_url, "wrap": True},
|
||||
{"type": "TextBlock", "text": reason, "wrap": True},
|
||||
|
||||
Reference in new issue
Block a user