mew-music组件新增apiUrl属性

This commit is contained in:
j m 2025-03-04 07:44:29 +08:00
parent b47af4b017
commit 97cc260679
4 changed files with 5 additions and 5 deletions

View File

@ -115,12 +115,12 @@ document.addEventListener('DOMContentLoaded', () => {
.then((response) => response.json())
} else if (this.hasAttribute('song')) {
this.options.audio = await fetch(
'https://api.i-meto.com/meting/api?server=netease&type=song&id=' +
this.getAttribute('apiUrl') || 'https://api.i-meto.com/meting/api' + '?server=netease&type=song&id=' +
this.getAttribute('song')
).then((response) => response.json())
} else if (this.hasAttribute('playlist')) {
this.options.audio = await fetch(
'https://api.i-meto.com/meting/api?server=netease&type=playlist&id=' +
this.getAttribute('apiUrl') || 'https://api.i-meto.com/meting/api' + '?server=netease&type=playlist&id=' +
this.getAttribute('playlist')
).then((response) => response.json())
} else if (this.hasAttribute('url')) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@ spec:
settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap
# 版本号
version: 1.4.0.beta1
version: 1.4.0.beta2
# 最低支持的 Halo 版本
require: ">=2.20.0"
# 许可