From eca0e68138befc23cd47418511d8b25e5c94eee4 Mon Sep 17 00:00:00 2001 From: longchao <1432334894@qq.com> Date: Tue, 29 Jul 2025 15:51:48 +0800 Subject: [PATCH 1/3] =?UTF-8?q?es=20ip=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mEs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/mEs.php b/model/mEs.php index 058e40f..69bb9fc 100644 --- a/model/mEs.php +++ b/model/mEs.php @@ -5,7 +5,7 @@ include_once(SERVER_ROOT . "/model/mBase.php"); class mEs extends mBase { - public $es_host = '127.0.0.1'; + public $es_host = '8.154.43.224'; public $es_port = 9200; public $es_index = ''; From a0e41ddb9954cea7501040f567d07229920ecaf7 Mon Sep 17 00:00:00 2001 From: longchao <1432334894@qq.com> Date: Tue, 29 Jul 2025 16:04:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mEs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/mEs.php b/model/mEs.php index 69bb9fc..cc6e36a 100644 --- a/model/mEs.php +++ b/model/mEs.php @@ -82,7 +82,7 @@ class mEs extends mBase { $highlights = $v['highlight']["content"]; if(!empty($highlights)) { foreach($highlights as $k=>$val) { - $weibo['text'] = str_replace($val, ''.$val.'', $weibo['text']); + $weibo['text'] = str_replace($val, ''.$val.'', $weibo['text']); } } From e50db6fd4c940d3e961ca62949c60748d3a8d10e Mon Sep 17 00:00:00 2001 From: longchao <1432334894@qq.com> Date: Tue, 29 Jul 2025 16:08:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=B8=8D=E5=BD=95=E5=85=A5=E9=9D=9E?= =?UTF-8?q?=E5=8E=9F=E5=88=9B=E5=BE=AE=E5=8D=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/es_setting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/es_setting.php b/tools/es_setting.php index 836f8eb..2be78be 100644 --- a/tools/es_setting.php +++ b/tools/es_setting.php @@ -46,7 +46,7 @@ $log_path_success = '/datacenter/zhishiku/es_success.log'; $log_path_err = '/datacenter/zhishiku/es_error.log'; for($page=0;;$page++){ - $sql = "SELECT * FROM spider_weibo where uid=2282201403 and id>".$min_id." order by id asc limit ".$limit; + $sql = "SELECT * FROM spider_weibo where f_mblogid='' and uid=2282201403 and id>".$min_id." order by id asc limit ".$limit; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) {