更新说明

This commit is contained in:
LyLme 2022-01-21 18:09:00 +08:00
parent e1c1233c3e
commit 2d49e73690
1 changed files with 5 additions and 4 deletions

View File

@ -1,10 +1,11 @@
<?php
/**
* 描述PHP获取bing每日壁纸CRON
* 请求方式GET
* 示例http://xxx.com/assets/img/cron.php?idx=2
* 参数idx 0-7 0为今天1为昨天以此类推可以获取过去7天的壁纸
* 作者LyLme
* 说明将bing壁纸保存到当前目录/background.jpg文件
* 请求方式GET
* 示例http://xxx.com/assets/img/cron.php?idx=1&n=1
* 参数idx0-7 0为今天1为昨天以此类推可以获取过去7天的壁纸
* 时间2022-01-20
*/
if($_GET['idx']==null){
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');