修复侧栏中爱发电访问发电用户主页接口地址失效问题
This commit is contained in:
parent
7be697e633
commit
4c6e206414
@ -756,6 +756,7 @@ spec:
|
||||
- $formkit: url
|
||||
name: powerLink
|
||||
label: 赞助地址
|
||||
help: https://ifdian.net/a/uptoz
|
||||
- $formkit: text
|
||||
name: url
|
||||
label: 接口地址
|
||||
|
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user