update pay ui
This commit is contained in:
13
app.py
13
app.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user