From 2875e6785ac8dd114a04fd42fa9434e0786d47ab Mon Sep 17 00:00:00 2001 From: longchao <1432334894@qq.com> Date: Wed, 16 Jul 2025 15:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E9=A1=B5=E8=AF=84=E8=AE=BA=E5=85=A5=E5=BA=93=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mWeiboComments.php | 1 + queue/deal/spider_weibo_comment.php | 1 + 2 files changed, 2 insertions(+) diff --git a/model/mWeiboComments.php b/model/mWeiboComments.php index 2f9aaa5..0ec3e2c 100644 --- a/model/mWeiboComments.php +++ b/model/mWeiboComments.php @@ -134,6 +134,7 @@ class mWeiboComments extends mBase { $rdata['total_number'] = $source_data['total_number']+0; $rdata['max_id'] = $max_id; $rdata['weibo_id'] = $weibo_id; + $rdata['weibo_id'] = empty($source_data['data']) ? 0 : count($source_data['data']); $rdata['is_load_all'] = count($source_data['data']) <= 0 ? true : false; if(empty($source_data['data']) || count($source_data['data']) <= 0) return $rdata; diff --git a/queue/deal/spider_weibo_comment.php b/queue/deal/spider_weibo_comment.php index 16b150b..8647734 100644 --- a/queue/deal/spider_weibo_comment.php +++ b/queue/deal/spider_weibo_comment.php @@ -108,6 +108,7 @@ class spiderWeiboComment extends dealBase { } $cobj = new mWeiboComments(); + $res = $cobj->addComment($weibo_id, $res); if(!$res) { $error = $cobj->getError().'|评论json数据保存到数据库失败~';