From c74d2a6fc84a6265a8c13b1494ed673e8028fc7d Mon Sep 17 00:00:00 2001 From: longchao <1432334894@qq.com> Date: Wed, 16 Jul 2025 15:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=93=E5=8F=96=E6=89=80?= =?UTF-8?q?=E6=9C=89=E8=AF=84=E8=AE=BA=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- queue/deal/spider_weibo_comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queue/deal/spider_weibo_comment.php b/queue/deal/spider_weibo_comment.php index a425ad9..2c010d3 100644 --- a/queue/deal/spider_weibo_comment.php +++ b/queue/deal/spider_weibo_comment.php @@ -123,8 +123,8 @@ class spiderWeiboComment extends dealBase { $rdobj = $obj->initRedis(); if($res['count'] == 0 && $res['max_id'] > 0) { $obj->writeLog(ZHISHIKU_SPIDER_LOG, ZHISHIKU_SPIDER_COMMENT, '抓取所有评论失败:'.$baselog.'|'.$res['max_id']); - $wobj->updateWeibo($weibo_id, array('spider_comment_status' => SPIDER_COMMENT_STATUS_ERROR)); - $rdobj->srem(_RS_SPIDER_WEIBO_COMMENT, $weibo_id); + $res = $wobj->updateWeibo($weibo_id, array('spider_comment_status' => SPIDER_COMMENT_STATUS_ERROR)); + if($res) $rdobj->srem(_RS_SPIDER_WEIBO_COMMENT, $weibo_id); return false; } sleep(10);