|
|
@ -110,4 +110,20 @@ class weibo extends publicBase { |
|
|
|
public function show_detail() { |
|
|
|
$this->view['wid'] = $this->get('wid') + 0; |
|
|
|
} |
|
|
|
|
|
|
|
public function ajax_update_cookie() { |
|
|
|
$cookie = trim($this->get('cookie')); |
|
|
|
$type = $this->get('type') + 0; |
|
|
|
$obj = new mWeiboBehavior(); |
|
|
|
$robj = $obj->initRedis(); |
|
|
|
$robj->set(_RC_WEIBO_LOGIN_COOKIE, $cookie); |
|
|
|
|
|
|
|
if($type == 0){ |
|
|
|
shell_exec("nohup /usr/bin/php /data1/www/zhishiku.yizherenxin.cn/queue/crontab/spider_behavior_data.php > /dev/null 2>&1 &"); |
|
|
|
$this->ajax_json(true, '设置成功'); |
|
|
|
} |
|
|
|
|
|
|
|
shell_exec("nohup /usr/bin/php /data1/www/zhishiku.yizherenxin.cn/queue/crontab/spider_behavior_delta.php > /dev/null 2>&1 &"); |
|
|
|
$this->ajax_json(true, '设置成功'); |
|
|
|
} |
|
|
|
} |
|
|
|