系统设置:Webhook 地址移到冷却/阈值参数下方。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-03 02:38:55 +08:00
parent 385f778fb7
commit ebe139555b
+3 -3
View File
@@ -56,9 +56,6 @@
<small>关闭后后台仍巡检,但不发消息</small> <small>关闭后后台仍巡检,但不发消息</small>
</span> </span>
</label> </label>
<label class="settings-field">Webhook 地址
<input type="url" name="wechat_webhook" value="{{ wechat.webhook }}" placeholder="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=..." autocomplete="off">
</label>
<div class="settings-row-2"> <div class="settings-row-2">
<label class="settings-field">告警冷却(秒) <label class="settings-field">告警冷却(秒)
<input type="number" name="alert_cooldown_sec" value="{{ wechat.cooldown_sec }}" min="60" max="86400" step="1"> <input type="number" name="alert_cooldown_sec" value="{{ wechat.cooldown_sec }}" min="60" max="86400" step="1">
@@ -68,6 +65,9 @@
</label> </label>
</div> </div>
<p class="field-hint settings-hint">连续拉取失败达到阈值后才告警,默认 2 次;同一机器在冷却期内不重复推送。</p> <p class="field-hint settings-hint">连续拉取失败达到阈值后才告警,默认 2 次;同一机器在冷却期内不重复推送。</p>
<label class="settings-field">Webhook 地址
<input type="url" name="wechat_webhook" value="{{ wechat.webhook }}" placeholder="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=..." autocomplete="off">
</label>
<div class="settings-actions"> <div class="settings-actions">
<button type="submit" name="form_action" value="wechat" class="settings-primary">保存告警配置</button> <button type="submit" name="form_action" value="wechat" class="settings-primary">保存告警配置</button>
<button type="submit" name="form_action" value="wechat_test" class="btn-secondary">发送测试消息</button> <button type="submit" name="form_action" value="wechat_test" class="btn-secondary">发送测试消息</button>