fix:自动补货更新
This commit is contained in:
@@ -52,6 +52,7 @@ type RockConfig struct {
|
||||
PurchaseCooldownMinutes int `gorm:"not null;default:10" json:"purchase_cooldown_minutes"`
|
||||
LastPurchasedAt *time.Time `json:"last_purchased_at"`
|
||||
LastAttemptAt *time.Time `json:"last_attempt_at,omitempty"` // 最近一次采购尝试(成功/失败)时间,用于失败冷却
|
||||
LastAutoAttemptAt *time.Time `json:"last_auto_attempt_at,omitempty"` // 最近一次自动补货尝试时间,自动冷却只认这个
|
||||
LastError string `gorm:"type:text;not null;default:''" json:"last_error"` // 最近一次补货/打包错误,成功后清空
|
||||
LastErrorAt *time.Time `json:"last_error_at,omitempty"`
|
||||
LastHeartbeatAt *time.Time `json:"last_heartbeat_at"`
|
||||
|
||||
Reference in New Issue
Block a user