DeepLearning101 commited on
Commit
460425e
·
verified ·
1 Parent(s): 1896ee3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
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
- print(f"✅ notify_boss GAS Email 回應:{r.status_code}")
 
 
 
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: