Browse Source

Merge pull request '暂停抓取' (#107) from wpd_stop into master

Reviewed-on: #107
master
pengda 3 days ago
parent
commit
f09878f74e
  1. 4
      queue/config/daemonconf.php
  2. 2
      queue/deal/get_weibo_behavior.php

4
queue/config/daemonconf.php

@ -12,8 +12,8 @@ $GLOBALS['DAEMON_MAXTIME'] = array(
); );
$GLOBALS['DAEMON_LIST'] = array( $GLOBALS['DAEMON_LIST'] = array(
SPIDER_WEIBO_BEHAVIOR => 'get_weibo_behavior.php', // SPIDER_WEIBO_BEHAVIOR => 'get_weibo_behavior.php',
SPIDER_WEIBO_COMMENT => 'spider_weibo_comment.php', // SPIDER_WEIBO_COMMENT => 'spider_weibo_comment.php',
); );
$GLOBALS['DAEMON_LIST_DESC'] = array( $GLOBALS['DAEMON_LIST_DESC'] = array(

2
queue/deal/get_weibo_behavior.php

@ -26,7 +26,7 @@ class getWeiboBehavior extends dealBase {
} }
if (empty($ipdata)) { if (empty($ipdata)) {
sleep(2); sleep(2);
return false; exit;
} }
$obj->proxy_ip = $ipdata['ip']; $obj->proxy_ip = $ipdata['ip'];

Loading…
Cancel
Save