<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ~~~ public function doWebGetCon(){ global $_W,$_GPC; $w_url = $_GPC['wx_url']; // $w_url='https://mp.weixin.qq.com/s?src=11&timestamp=1507426202&ver=439&signature=MgLrL6vm49P1NTbkmCBT-FTme0UJ9khtTaY3SRmW-opPVKUo8n6k7NrgJgaUI9lRcWiQu-BlqAqt-Ouv3SbFr8p5CKhAjfe2wYqkLIrTL4NPyyzrT7p97LX2hZP-Fhjs&new=1'; // echo "<script>alert('".$w_url."');</script>"; $html = file_get_contents($w_url); //獲取文章源碼并保存到參數中 // echo "<script>alert('".$html."');</script>"; $html = str_replace("<!--headTrap<body></body><head></head><html></html>-->", "", $html); //去除微信中的抓取干擾代碼 // die($w_url); // var_dump($html); $data = QueryList::Query($html,array( //采集規則庫 //'規則名' => array('jQuery選擇器','要采集的屬性'), 'titleTag' => array('title','text'), // 'title' => array('#activity-name','text'), 'content' => array('#js_content','html'), // 'image' => array('img','src'), //微信規則 // 'contentWx' => array('#js_content','text'), // 'imageWx' => array('img','data-src'), // 'conText' => array('.rich_media_content>p','text'), ))->data; /* foreach ($data as $k => $v) { $data[$k]['imageWx'] = $this->cut_str($v['imageWx'],'?',0); }*/ //打印結果 // print_r($data);die; $insertdata = [ 'title'=>$data[0][titleTag], 'uniacid'=>$_W['uniacid'], 'content'=>$data[0][content], 'time'=>time(), 'fid'=>$_GPC['fid'] ]; $res= pdo_insert('xm_cms_news',$insertdata); if($res){ message('采集成功',$this->createWebUrl('news',array('op'=>'display')),'success'); }else{ message('采集失敗',$this->createWebUrl('news',array('op'=>'display')),'error'); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看