public function getChannelList()
 {
     for ($j = 1; $j <= 12; $j++) {
         $url = 'http://www.app-echo.com/channel/list?&page=' . $j . '&per-page=16';
         $result = API::RequestWithCookie($url);
         $rule = '/<h3>(.+)<\\/h3>|<a href\\=\\"(.+)\\"><\\/a>/';
         preg_match_all($rule, $result, $preg);
         $rule = '/\\/channel\\/\\d+/';
         $obj = M('Channel');
         $list = [];
         for ($i = 0; $i < 32; $i++) {
             if ($i % 2) {
                 $temp['url'] = $preg[2][$i];
                 if (preg_match($rule, $temp['url'])) {
                     array_push($list, $temp);
                 }
                 $temp = null;
             } else {
                 $temp['title'] = $preg[1][$i];
             }
         }
         $obj->addAll($list);
         echo 'page ' . $j . ' finish<br />';
         ob_flush();
         flush();
     }
 }