Browse Source

修复抓取所有评论失败问题

pull/90/head
longchao 2 days ago
parent
commit
ef26b13886
  1. 4
      queue/deal/spider_weibo_comment.php

4
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']);
$res = $wobj->updateWeibo($weibo_id, array('spider_comment_status' => SPIDER_COMMENT_STATUS_ERROR));
if($res) $rdobj->srem(_RS_SPIDER_WEIBO_COMMENT, $weibo_id);
$ures = $wobj->updateWeibo($weibo_id, array('spider_comment_status' => SPIDER_COMMENT_STATUS_ERROR));
if($ures) $rdobj->srem(_RS_SPIDER_WEIBO_COMMENT, $weibo_id);
return false;
}
sleep(10);

Loading…
Cancel
Save