feat: 远程浏览器功能 - Web面板内嵌操作滑块验证

- 新增 remote_browser.py: CDP screencast截图流 + 鼠标/键盘事件转发
- Flask-SocketIO 实时通信
- 短信登录时弹出远程浏览器窗口,用户直接在Web页面拖滑块
- 自动检测登录成功并保存auth状态
This commit is contained in:
2026-04-01 13:56:27 +08:00
parent 2ebdaec965
commit 8b64d7e69e
6 changed files with 511 additions and 44 deletions

7
run.py
View File

@@ -1,13 +1,14 @@
"""启动入口python run.py"""
from server.app import create_app
from server.app import create_app, socketio
app = create_app()
if __name__ == '__main__':
import os
print("=" * 50)
print(" 微店抢购管理系统已启动")
print(" 访问 http://localhost:9000")
print("=" * 50)
import os
debug = os.environ.get('FLASK_DEBUG', '1') == '1'
app.run(host='0.0.0.0', port=9000, debug=debug)
socketio.run(app, host='0.0.0.0', port=9000, debug=debug,
allow_unsafe_werkzeug=True)