名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 否 | string | dark深色light浅色 |
#FFED97
自行调用
<?php
header("Content-Type:text/json;charset=UTF-8"); date_default_timezone_set("PRC"); $type = $_GET["type"]; $url = "https://api.vvhan.com/api/color?type=" . $type; $data = file_get_contents($url); echo $data;
?>