protected function handleRequestInner()
 {
     $parmas = $this->request->get_attributes();
     if ($this->request->get_method() == 'POST') {
         $rs = $this->doPost($_POST);
         echo json_encode($rs);
         return;
     }
     $supplier = $parmas['supplier'];
     $is_admin = $parmas['is_admin'];
     $current_page = $this->request->get_parameter('p');
     if (!isset($current_page)) {
         $current_page = 1;
     }
     $page_size = $this->request->get_parameter('pz');
     if (!is_numeric($page_size) || $page_size > 50) {
         $page_size = 10;
     }
     $supplierId = 0;
     if ($is_admin) {
         if ($_GET['ss']) {
             $supplierId = $_GET['ss'];
             $channelList = $this->serviceSupplier->getChannelListBySupplierId($supplierId, $current_page, $page_size);
         }
         $supplierList = $this->serviceAccount->getSupplierList();
     } else {
         $supplierId = $this->serviceAccount->getIdBySupplier($supplier);
         // 通过$supplier查出supplierId
         $channelList = $this->serviceSupplier->getChannelListBySupplierId($supplierId, $current_page, $page_size);
     }
     $totalCount = $this->serviceSupplier->getChannelCount($supplierId);
     $this->request->set_attribute('channelList', $channelList);
     $this->request->set_attribute('supplierList', $supplierList);
     $pageInfo = array("current_page" => $current_page, "total_page" => round($totalCount / $page_size) + 1, "page_size" => $page_size, "total_count" => $totalCount, "ss" => $supplierId);
     $this->request->set_attribute('pageInfo', $pageInfo);
     $pre_page = $current_page - 1;
     $next_page = $current_page + 1;
     $page_size = 10;
     return array('Supplier_Channel_ChannelManager', array('channelList' => $channelList, 'supplierList' => $supplierList, 'pageInfo' => $pageInfo, 'pre_page' => $pre_page, 'current_page' => $current_page, 'next_page' => $next_page));
 }