文件名1.php,可以放在网站根目录,到时候每天点一下就行了!只适用于自适应站点

  1. <?php
  2. require_once (“include/common.inc.php”);
  3. require_once “include/arc.partview.class.php”;
  4. req织梦姑娘公众号uire_once(‘include/charset.func.php’);
  5. $year = date(“Y”);
  6. $month = date(“m”);
  7. $day = date(“d”);

  1. $dayBegin = mktime(0,0,0,$month,$day,$year);

  1. $织梦熊掌号dayEnd = mktime(23,59,59,$mo织梦姑娘公众号nth,$day,$year);

  1. $query = “SELECT arc织梦姑娘公众号h.id,types.typedir织梦熊掌号 FROM dede_arctype as types inner join dede_archives a织梦熊掌号s arch on types织梦熊掌号.id=arch.typeid where pubdate<“.$dayEnd.织梦熊掌号” AND pubdate>”织梦姑娘公众号.$dayBegin.“”;
  2. //echo $query;
  3. $urls=“”;
  4. $dsql->Execute(‘arch.id,types.typedir’织梦熊掌号,$query);
  5. while($ro织梦姑娘公众号w = $dsql->GetA织梦熊掌号rray(‘ar织梦姑娘公众号ch.id,types.typed织梦熊掌号ir’))
  6. {
  7. $urls.=“https://www.19tx.cn”.str_replace(“{cmspath}”,“”,$row[‘t织梦姑娘公众号ypedir’])织梦姑娘公众号.“/”.$row[id].“.html”.“,”;
  8. }
  9. $urls=substr($urls,0,-1);
  10. $urls = explode(“,织梦熊掌号,$urls);

  1. $api = ‘http://data.zz织梦熊掌号.baidu.com/urls?appid=熊掌号ID&token=密钥&type=r织梦熊掌号ealtime’; // 前边的熊掌号ID和密钥换成自己织梦姑娘公众号

  1. $ch = curl_i织梦姑娘公众号nit();
  2. $options = array织梦熊掌号(
  3. CURLOPT_URL => $api,
  4. CURLOPT_POST => true,
  5. CURLOPT_RETURN织梦熊掌号TRANSFER =&g织梦熊掌号t; true织梦姑娘公众号,
  6. CURLOPT_POSTFIELDS => implode(“n”, $urls),
  7. CURLOPT_HTTPHEADER => array(‘Content-Type: text/plain’),
  8. );
  9. curl_setopt_array($ch, $o织梦熊掌号ptions);
  10. $result = curl织梦姑娘公众号_exec($ch);
  11. echo $result;
  12. ?>