How gudong2003/xianyu-auto-reply-fix works
This is a FastAPI-based multi-user Xianyu seller-management system. The principal workflow is: a user operates the web interface, account management starts per-account live message processing, and the system handles replies and operational events while persisting account and business data. Separate capabilities cover product discovery and publishing, order management, fulfillment, ratings, notifications, and monitoring. The README documents the overall runtime flow; several feature modules are represented from their names and index references, so uncertain wiring is omitted.
Main entry points: db_manager.py SQLite Data · Start.py Web Interface · cookie_manager.py Account Manager · XianyuAutoAsync.py Live Message Runtime
Components 23
Web and Accounts
- Web Interface
Start.py - Account Manager
cookie_manager.py - Runtime Config
config.py
Messaging Runtime
- Live Message Runtime
XianyuAutoAsync.py - AI Replies
ai_reply_engine.py - Message Filters
message_filter_service.py - Blacklist
blacklist_service.py
Commerce Operations
- Product Search
utils/item_search.py - Product Publishing
utils/item_publisher.py - Product Specs
utils/product_sku.py - Order Status
order_status_handler.py - Order History Sync
utils/order_history_sync.py - Order Details
utils/order_detail_fetcher.py - Auto Fulfillment
secure_freeshipping_decrypted.py - Rating Task
auto_rate_task.py - Rating Service
utils/rate_service.py - Red Flower Task
auto_red_flower_task.py
Platform Services
- Notifications
utils/notification_dispatcher.py - Order Events
order_event_hub.py - Live Logs
file_log_collector.py
Persistence and Monitoring
- SQLite Data
db_manager.py
Other components
- Seller
- Xianyu Platform
Connections 27
- Seller → Web Interface: uses
README.md - Web Interface → Account Manager: manages accounts
README.md - Web Interface → Runtime Config: loads
Start.py - Web Interface → SQLite Data: initializes
Start.py - Web Interface → Live Logs: initializes
Start.py - Account Manager → SQLite Data: reads and writes
cookie_manager.py - Account Manager → Live Message Runtime: starts account runtime
cookie_manager.py - Live Message Runtime → AI Replies: generates replies
README.md - Live Message Runtime → Live Logs: streams logs
README.md - AI Replies → SQLite Data: reads settings
ai_reply_engine.py - Message Filters → SQLite Data: uses rules
message_filter_service.py - Blacklist → SQLite Data: uses records
blacklist_service.py - Order Status → SQLite Data: updates orders
order_status_handler.py - Order Status → Order Events: publishes events
order_status_handler.py - Order History Sync → Order Details: fetches details
utils/order_history_sync.py - Order History Sync → SQLite Data: syncs history
utils/order_history_sync.py - Order Details → SQLite Data: stores details
utils/order_detail_fetcher.py - Rating Task → Rating Service: calls service
auto_rate_task.py - Rating Service → SQLite Data: updates cookies
utils/rate_service.py - Product Publishing → Product Specs: uses specs
utils/item_publisher.py - Rating Service → Xianyu Platform: submits ratings
utils/rate_service.py - Red Flower Task → Xianyu Platform: requests flowers
README.md - Auto Fulfillment → Xianyu Platform: fulfills orders
README.md - Product Search → Xianyu Platform: searches products
README.md - Product Publishing → Xianyu Platform: publishes listings
README.md - Notifications → SQLite Data: reads notification settings
utils/notification_dispatcher.py - Order Events → SQLite Data: uses order data
order_event_hub.py