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

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 - $formkit: url
name: powerLink name: powerLink
label: 赞助地址 label: 赞助地址
help: https://ifdian.net/a/uptoz
- $formkit: text - $formkit: text
name: url name: url
label: 接口地址 label: 接口地址

View File

@ -429,7 +429,7 @@ let halo = {
</div>`; </div>`;
} else { } else {
if (powerStar) { 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 = ` powerStar.innerHTML = `
<div id="power-star-image" style="background-image: url(${data[0]["user"].avatar})"> <div id="power-star-image" style="background-image: url(${data[0]["user"].avatar})">
</div> </div>
@ -447,7 +447,7 @@ let halo = {
break; break;
} }
htmlText += 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; i = i + 1;
} }
if (document.getElementById("power-item-link")) { if (document.getElementById("power-item-link")) {