Feat: Add ACGM API
随机动漫音乐曲库可根据 id 和番名添加(无鉴权),目录结构调整,前端部分内容更正
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ import React from "react";
|
||||
|
||||
import { useRequest } from "ahooks";
|
||||
|
||||
import getStat from "../api/stat";
|
||||
import getStat from "../server/api/stat";
|
||||
|
||||
import { Link } from "react-router-dom";
|
||||
import ArticleHead from "@/components/Layout/ArticleHead";
|
||||
|
||||
@@ -115,7 +115,7 @@ function Netease() {
|
||||
|
||||
<h3>示例:</h3>
|
||||
<p>通过 ID 获得一首歌的信息</p>
|
||||
<pre className="language-javascript"><code>{`https://api.paugram.com/netease/?id=448143347
|
||||
<pre className="language-javascript"><code>{`https://api.paugram.com/api/netease/?id=448143347
|
||||
|
||||
// 返回的是:
|
||||
|
||||
@@ -137,11 +137,11 @@ function Netease() {
|
||||
}
|
||||
`}</code></pre>
|
||||
<p>通过 ID 获得一首歌,并跳转到实际地址</p>
|
||||
<pre><code>https://api.paugram.com/netease/?id=517567145&play=true</code></pre>
|
||||
<pre><code>https://api.paugram.com/api/netease/?id=517567145&play=true</code></pre>
|
||||
<p>结合 Kico Style 和 Kico Player 使用本 API</p>
|
||||
<pre className="language-javascript"><code>{`ks.ajax({
|
||||
method: "GET",
|
||||
url: \`https://api.paugram.com/netease/?id=\${id}\`,
|
||||
url: \`https://api.paugram.com/api/netease/?id=\${id}\`,
|
||||
success: (req) => {
|
||||
const item = JSON.parse(req.response);
|
||||
声明的播放器.add([item]);
|
||||
|
||||
Reference in New Issue
Block a user