- 新增 remote_browser.py: CDP screencast截图流 + 鼠标/键盘事件转发 - Flask-SocketIO 实时通信 - 短信登录时弹出远程浏览器窗口,用户直接在Web页面拖滑块 - 自动检测登录成功并保存auth状态
15 lines
435 B
Python
15 lines
435 B
Python
"""启动入口:python run.py"""
|
||
from server.app import create_app, socketio
|
||
|
||
app = create_app()
|
||
|
||
if __name__ == '__main__':
|
||
import os
|
||
print("=" * 50)
|
||
print(" 微店抢购管理系统已启动")
|
||
print(" 访问 http://localhost:9000")
|
||
print("=" * 50)
|
||
debug = os.environ.get('FLASK_DEBUG', '1') == '1'
|
||
socketio.run(app, host='0.0.0.0', port=9000, debug=debug,
|
||
allow_unsafe_werkzeug=True)
|