添加360壁纸

This commit is contained in:
muzihuaner
2026-03-14 23:35:21 +08:00
parent 3f567b9cf5
commit 621164e4ef
3 changed files with 34 additions and 0 deletions

1
api/360bz/counter.dat Normal file
View File

@@ -0,0 +1 @@
3

View File

@@ -1,5 +1,12 @@
<?php <?php
$counter = intval(file_get_contents("counter.dat"));
$_SESSION['#'] = true;
$counter++;
$fp = fopen("counter.dat","w");
fwrite($fp, $counter);
fclose($fp);
require ('../../need.php');//引用封装好的函数文件 require ('../../need.php');//引用封装好的函数文件
$n = @$_REQUEST["n"]; $n = @$_REQUEST["n"];
$p = @$_REQUEST["p"]; $p = @$_REQUEST["p"];

View File

@@ -1,5 +1,31 @@
{ {
"apis": [ "apis": [
{
"name": "360壁纸",
"description": "获取360壁纸接口支持多种分类和返回格式",
"path": "/api/360bz/index.php",
"method": "GET",
"params": [
{
"name": "n",
"type": "integer",
"required": false,
"description": "壁纸分类编号(1-16)默认为26分类"
},
{
"name": "p",
"type": "integer",
"required": false,
"description": "页码,用于分页"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "返回格式[text|image|json]默认为json。text返回图片URLimage直接重定向到图片"
}
]
},
{ {
"name": "Bing 每日壁纸", "name": "Bing 每日壁纸",
"description": "获取Bing每日图片接口返回当日Bing首页背景图片", "description": "获取Bing每日图片接口返回当日Bing首页背景图片",