更新说明

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
* 参数:idx:0-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');