feat: 对齐闲鱼续期流程并完善业务管理
对齐官方 WebSocket 批量握手、注册、心跳、ACK、同步恢复及运行时设备标识生命周期。 保留 Cookie 完整属性,接入静默续期和保存登录信息设置,并在凭证更新后重建账号连接。 完善订单与商品同步、卡券和通知渠道交互,更新前端品牌、时间展示及嵌入资源。 补充 Go 与前端回归测试,确保完整检查和生产构建通过。
This commit is contained in:
1 parent
3cc1d4094d
commit
d77c317452
69 files changed
+3169
-819
No files matched your search
@@ -27,6 +27,7 @@ import (
|
||||
"xianyu-go/internal/webui"
|
||||
"xianyu-go/internal/xianyu/mtop"
|
||||
"xianyu-go/internal/xianyu/qrlogin"
|
||||
xrenew "xianyu-go/internal/xianyu/renew"
|
||||
)
|
||||
|
||||
type qrLoginService interface {
|
||||
@@ -63,6 +64,7 @@ type Server struct {
|
||||
PasswordLogin passwordLoginRunner
|
||||
notifier *notify.Notifier
|
||||
MTop mtop.Client
|
||||
CookieRenew xrenew.Service
|
||||
QRLogin qrLoginService
|
||||
Logger *slog.Logger
|
||||
WebDir string // 前端静态资源目录(含 index.html)
|
||||
@@ -110,6 +112,7 @@ func New(store *db.Store, manager *account.Manager, bm *browser.Manager, secure
|
||||
PasswordLogin: passwordLoginRunnerForBrowser(bm),
|
||||
notifier: notifier,
|
||||
MTop: mtop.NewClient(),
|
||||
CookieRenew: xrenew.Service{},
|
||||
QRLogin: qrMgr,
|
||||
Logger: logger,
|
||||
WebDir: webDir,
|
||||
|
||||
Reference in new issue
Block a user