Revert "qr-verify: Push to fam's alert channel"

This reverts commit 2514b557e7294ef71c1ac8561d66052de8bad9df.
This commit is contained in:
Fam Zheng 2025-04-24 21:28:28 +01:00
parent 2514b557e7
commit 10d6b45388

View File

@ -756,10 +756,6 @@ class QrVerifyView(BaseView):
if sd.code and not settings.DEBUG: if sd.code and not settings.DEBUG:
cmd = [MANAGE_PY, 'qrrepeatalert', code] cmd = [MANAGE_PY, 'qrrepeatalert', code]
subprocess.Popen(cmd) subprocess.Popen(cmd)
try:
requests.post('https://euphon-alert-23358.famzheng.workers.dev/', data=f'qr-verify: {resp}, messages: {messages}')
except Exception as e:
print(f"Failed to send qr-verify alert: {e}")
return JsonResponse(resp) return JsonResponse(resp)
class CheckAutoTorchView(BaseView): class CheckAutoTorchView(BaseView):