发布管理:状态卡 + 一个主按钮,准备动作与检查项分层次收纳,去掉重复入口。 系统设置:F02 停滞阈值接入活动配置;F03 分区保存边界;F05/F06 生产绑定分层与凭据说明; F07 备份未接主机/未知证据如实显示;F09 分区独立加载与保存后重探;F10 文案精简;F11 重置密码对话框。
This commit is contained in:
@@ -35,7 +35,9 @@ type PollHandlerConfig struct {
|
||||
Client PollClient
|
||||
PollDelay time.Duration
|
||||
StallAfter time.Duration
|
||||
Now func() time.Time
|
||||
// StallAfterSource 可选:返回当前生效的停滞阈值(来自活动 UI 配置)。
|
||||
StallAfterSource func() time.Duration
|
||||
Now func() time.Time
|
||||
}
|
||||
|
||||
type PollHandler struct {
|
||||
@@ -43,7 +45,10 @@ type PollHandler struct {
|
||||
client PollClient
|
||||
pollDelay time.Duration
|
||||
stallAfter time.Duration
|
||||
now func() time.Time
|
||||
// stallAfterSource 存在时优先于 stallAfter:页面保存的“解析停滞阈值”
|
||||
// 必须真的决定判定,而不是只写进数据库。
|
||||
stallAfterSource func() time.Duration
|
||||
now func() time.Time
|
||||
}
|
||||
|
||||
type pollPayload struct {
|
||||
@@ -60,7 +65,7 @@ func NewPollHandler(config PollHandlerConfig) (*PollHandler, error) {
|
||||
}
|
||||
return &PollHandler{
|
||||
store: config.Store, client: config.Client, pollDelay: config.PollDelay,
|
||||
stallAfter: config.StallAfter, now: config.Now,
|
||||
stallAfter: config.StallAfter, stallAfterSource: config.StallAfterSource, now: config.Now,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user