mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
fix(workflows): update branch references and remove unused push triggers
feat: enhance eapi_decrypt.html with styled decode result display fix: update qrlogin and qrlogin-nocookie to include platform parameter in QR code creation URL chore: bump music-metadata and other dependencies in package.json and pnpm-lock.yaml docs: update README with important project usage notes
This commit is contained in:
@@ -8,6 +8,19 @@
|
||||
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<style>
|
||||
.decode-result {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
background-color: #f0f0f0;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
margin-top: 10px;
|
||||
height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div id="app" class="p-5 flex flex-col">
|
||||
<h1 class="text-2xl font-bold mb-5">eapi 参数和返回内容解析</h1>
|
||||
@@ -23,7 +36,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<p>解密结果:
|
||||
<pre>{{ JSON.stringify(JSON.parse(result), null, 2) }}</pre>
|
||||
<pre class="decode-result">{{ JSON.stringify(JSON.parse(result), null, 2) }}</pre>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -39,7 +52,6 @@
|
||||
<script src="https://fastly.jsdelivr.net/npm/vue@3"></script>
|
||||
|
||||
<script>
|
||||
const logger = require('../util/logger.js')
|
||||
const app = Vue.createApp({
|
||||
data() {
|
||||
return {
|
||||
@@ -62,7 +74,7 @@
|
||||
}
|
||||
})
|
||||
this.result = JSON.stringify(res.data.data)
|
||||
logger.info(res.data);
|
||||
console.log(res.data);
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
alert(error?.response?.data?.message || '解密失败,数据格式错误')
|
||||
@@ -74,4 +86,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user