织梦熊掌号api自动提交代码

分类:建站教程 时间:2024-12-22 19:00 浏览:0 评论:0
0

织梦熊掌号api自动提交代码,复制一下PHP代码,新建一个PHP文件,放在网站根目录,每天更新完后运行一次就行了!只适用于自适应站点。

".$dayBegin.""; 
//echo $query;  
$urls="";  
$dsql->Execute('arch.id,types.typedir',$query); 
while($row = $dsql->GetArray('arch.id,types.typedir'))  { $urls.="https://你的域名".str_replace("{cmspath}","",$row['typedir'])."/".$row[id].".html".",";  } 
$urls=substr($urls,0,-1);  
$urls = explode(",",$urls);
$api = 'http://data.zz.baidu.com/urls?appid=熊掌号ID&token=密钥&type=realtime'; 
$options = array(  CURLOPT_URL => $api,  CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,  CURLOPT_POSTFIELDS => implode("\n", $urls), CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),  );  
curl_setopt_array($ch, $options); 
$result = curl_exec($ch);  
echo $result;  
?>


1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 织梦熊掌号api自动提交代码

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }