武汉SEO
时光静好,与君语;细水流年,与君同;繁华落尽,与君老...

武汉SEO>正文

织梦主动推送代码

2018-09-08 16:01
    $urls="https://www.0937.biz".$artUrl;
    $urls    = explode(",",$urls);
     $api = ’http://data.zz.baidu.com/urls?site=https://www.0937.biz&token=DkIAEpxpl2mSzGUJ’;
    $ch = curl_init();
     $options =  array(
         CURLOPT_URL => $api,
         CURLOPT_POST => true,
         CURLOPT_RETURNTRANSFER => true,
         CURLOPT_POSTFIELDS => implode(" ", $urls),
         CURLOPT_HTTPHEADER => array(’Content-Type: text/plain’),
     );
     curl_setopt_array($ch, $options);

     $result = curl_exec($ch);


修改文件dede/article_add.php

添加到ClearMyAddon($arcID, $title);下面


本文链接:https://www.0937.biz/post-339.html