update pay ui

This commit is contained in:
2025-12-11 21:28:57 +08:00
parent 66a8cc1c79
commit 8b67e9b3cc
2 changed files with 24 additions and 9 deletions

13
app.py
View File

@@ -1,7 +1,18 @@
# ============ Gevent Monkey Patching必须放在所有 import 之前!)============
# 用于支持 Gunicorn + gevent 异步模式,使 requests 等阻塞调用变为非阻塞
import os
if os.environ.get('GEVENT_SUPPORT', 'true').lower() == 'true':
try:
from gevent import monkey
monkey.patch_all()
print("✅ Gevent monkey patching 已启用")
except ImportError:
print("⚠️ Gevent 未安装,跳过 monkey patching")
# ============ Gevent Monkey Patching 结束 ============
import base64
import csv
import io
import os
import time
import urllib
import uuid