Update main.py
Browse files
main.py
CHANGED
|
@@ -360,7 +360,10 @@ def notify_boss(name, tel, date, time, pax, email="", event="新訂位"):
|
|
| 360 |
json={"to": BOSS_EMAIL, "subject": subject, "htmlBody": html, "name": "Cié Cié Taipei"},
|
| 361 |
timeout=15
|
| 362 |
)
|
| 363 |
-
|
|
|
|
|
|
|
|
|
|
| 364 |
except Exception as e:
|
| 365 |
print(f"❌ notify_boss GAS Email 失敗:{e}")
|
| 366 |
else:
|
|
|
|
| 360 |
json={"to": BOSS_EMAIL, "subject": subject, "htmlBody": html, "name": "Cié Cié Taipei"},
|
| 361 |
timeout=15
|
| 362 |
)
|
| 363 |
+
if r.status_code == 200:
|
| 364 |
+
print(f"✅ notify_boss GAS Email 成功")
|
| 365 |
+
else:
|
| 366 |
+
print(f"❌ notify_boss GAS Email 失敗:HTTP {r.status_code} — {r.text[:200]}")
|
| 367 |
except Exception as e:
|
| 368 |
print(f"❌ notify_boss GAS Email 失敗:{e}")
|
| 369 |
else:
|