From 0546fce6019ddc05a2f2b6409941a06d2ec232d8 Mon Sep 17 00:00:00 2001 From: 97694731 <97694731@qq.com> Date: Mon, 15 Jun 2026 18:05:22 +0800 Subject: [PATCH] sync --- main.go | 7 +++++-- md/API.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index a0097ef..e8095bf 100644 --- a/main.go +++ b/main.go @@ -183,9 +183,12 @@ func main() { esService := es.NewESSearchService(esClient) + redisClient.AddClient("db1", "36.212.12.247:6379", "long6166@@", 1) redisClient.AddClient("db4", "36.212.12.247:6379", "long6166@@", 2) - redisClient.AddClient("db1", "36.212.12.247:6379", "long6166@@", 7) - //redisClient.AddClient("test", "127.0.0.1:6379", "", 0) + redisClient.AddClient("db7", "36.212.12.247:6379", "long6166@@", 7) + redisClient.AddClient("db8", "36.212.12.247:6379", "long6166@@", 8) + redisClient.AddClient("db10", "36.212.12.247:6379", "long6166@@", 10) + redisClient.AddClient("db11", "36.212.12.247:6379", "long6166@@", 11) // =================================================================== // 3. 初始化IP日志路径 diff --git a/md/API.md b/md/API.md index fc53473..35006a9 100644 --- a/md/API.md +++ b/md/API.md @@ -533,7 +533,7 @@ POST /api/es/updateBookFieldsByISBN - data 中的所有字段(含 `is_suit`)都会更新到 v2 索引 - `is_suit=1` 时,额外将文档同步到 `books-from-mysql-v3` 索引(存在则覆盖,不存在则新增) - `is_suit=0` 时,额外从 `books-from-mysql-v3` 索引中删除该 ISBN 的文档 -- 同步 Redis(db10),包含完整数据含 `cat_id` +- 同步 Redis(db1),包含完整数据含 `cat_id` **请求体** (JSON):