优化结构

This commit is contained in:
Yvan
2026-08-28 16:23:52 +08:00
parent 9b1daaf3f6
commit 295ee5c49e
24 changed files with 128 additions and 145 deletions
+2
View File
@@ -10,7 +10,9 @@ state, or translate provider-specific protocols into `biz` interfaces.
- `email`: SMTP email repository.
- `mq`: reloadable EMQX/MQTT and RabbitMQ/AMQP clients exposed through the shared `pkg/mq` interface.
- `payment`: payment-channel SDKs and callback/signature handling.
- `runtimeconfig`: runtime integration configuration store and subscriptions.
- `storage`: local and object-storage implementations of `biz.FileStorage`.
- `systeminfo`: system information integration helpers.
- `websocket`: reloadable Melody endpoint exposed through the shared
`pkg/websocket` wrapper.
+1 -1
View File
@@ -74,7 +74,7 @@ func (t *ConnectivityTester) restoreMaskedSecrets(kind, provider string, values
}
for key := range masked {
value, _ := values[key].(string)
if strings.TrimSpace(value) != config.MaskedSecret {
if !config.IsMaskedSecret(strings.TrimSpace(value)) {
continue
}
prior, _ := currentValues[key].(string)