修复侧栏中爱发电访问发电用户主页接口地址失效问题

This commit is contained in:
UPToZ 2024-12-18 14:05:49 +08:00
parent 7be697e633
commit 4c6e206414
2 changed files with 3 additions and 2 deletions

View File

@ -756,6 +756,7 @@ spec:
- $formkit: url
name: powerLink
label: 赞助地址
help: https://ifdian.net/a/uptoz
- $formkit: text
name: url
label: 接口地址

View File

@ -429,7 +429,7 @@ let halo = {
</div>`;
} else {
if (powerStar) {
powerStar.href = "https://afdian.net/u/" + data[0]["user"].user_id
powerStar.href = "https://ifdian.net/u/" + data[0]["user"].user_id
powerStar.innerHTML = `
<div id="power-star-image" style="background-image: url(${data[0]["user"].avatar})">
</div>
@ -447,7 +447,7 @@ let halo = {
break;
}
htmlText +=
` <a href="${"https://afdian.net/u/" + value["user"]["user_id"]}" rel="external nofollow" target="_blank" th:title="${value["user"]["name"]}">${value["user"]["name"]}</a>`;
` <a href="${"https://ifdian.net/u/" + value["user"]["user_id"]}" rel="external nofollow" target="_blank" th:title="${value["user"]["name"]}">${value["user"]["name"]}</a>`;
i = i + 1;
}
if (document.getElementById("power-item-link")) {