$api_user, 'apiKey' => $api_key, 'limit' => 100,//返回前100条数据 'startDate' => $start_date, 'endDate' => $end_date ); $result = make_curl($post_url,$params); $list = $result['info']['dataList']; $this->assign('list',$list); $this->assign('date_show',$date_show); $this->assign('info',$info); $this->display("index.html"); } //取消订阅管理-删除操作 public function delete(){ $api_user = $_SESSION['API_USER']; $api_key = $_SESSION['API_KEY']; $post_url = 'http://api.sendcloud.net/apiv2/unsubscribe/delete'; $e_date = date('Y-m-d',strtotime("+1 day")); $s_date = date("Y-m-d", strtotime("-30 day")); $params = array( 'apiUser' => $api_user, 'apiKey' => $api_key, 'apiUserList' => $api_user, 'startDate' => $s_date, 'endDate' => $e_date ); $result = make_curl($post_url,$params); $info = $result['message']; header("Location:/?a=unsubscribe_admin&m=index&info=$info"); exit(); } // class end } ?>