|
|
@ -85,6 +85,26 @@ class weibo extends publicBase { |
|
|
|
$this->ajax_json(true, '保存成功'); |
|
|
|
} |
|
|
|
|
|
|
|
public function ajax_get_spider_list() { |
|
|
|
$date = trim($this->post('date')); |
|
|
|
$cur_page = $this->post('currentPage') ? $this->post('currentPage') : 1; |
|
|
|
$page_size = $this->post('pageSize') ? $this->post('pageSize') : 20; |
|
|
|
|
|
|
|
$obj = new mWeiboBehavior(); |
|
|
|
$list = $obj->getSpiderBehavior($date, $cur_page, $page_size); |
|
|
|
$total = $obj->getSpiderBehaviorTotal($date); |
|
|
|
|
|
|
|
$rdata = array( |
|
|
|
'total' => $total, |
|
|
|
'per_page' => $page_size, |
|
|
|
'last_page' => ceil($total / $page_size), |
|
|
|
'cur_page' => $cur_page, |
|
|
|
'list' => $list, |
|
|
|
); |
|
|
|
|
|
|
|
$this->ajax_json(true, '获取成功', $rdata); |
|
|
|
} |
|
|
|
|
|
|
|
public function ajax_hot_list() { |
|
|
|
$type = $this->post('type') + 0; |
|
|
|
$sdate = trim($this->post('sdate')); |
|
|
|