Skip to content

Commit

Permalink
🔧 修复清风明月广播问题
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Dec 27, 2024
1 parent 5c0fb05 commit a24b449
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions src/main/resources/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,9 @@ var Util = {
}),
success: function (result) {
if (result.code === 0) {
let breezemoonAuthorName = result.data.breezemoonAuthorName;
let input = $btn.parent().find("input");
input.val("");
/*let breezemoonAuthorName = result.data.breezemoonAuthorName;
let breezemoonAuthorThumbnailURL48 = result.data.breezemoonAuthorThumbnailURL48;
let breezemoonContent = result.data.breezemoonContent;
let breezemoonOId = result.data.oId;
Expand All @@ -1393,13 +1395,11 @@ var Util = {
"<a href=\"" + Label.servePath + "/member/" + breezemoonAuthorName + "/breezemoons/" + breezemoonOId + "\" class=\"title\">" + breezemoonContent + "</a>\n" +
"</li>"
);
let input = $btn.parent().find("input");
input.val("");
list.find("li:last").fadeOut(199, function () {
list.find("li:last").remove();
});
list.find("li:first").slideDown(200);
Util.listenUserCard();
Util.listenUserCard();*/
} else {
Util.alert(result.msg);
}
Expand Down Expand Up @@ -1761,26 +1761,24 @@ var Util = {
}
if ($(".active-bz-list")[0] !== undefined) {
let breezemoonAuthorName = data.bz.breezemoonAuthorName;
if (breezemoonAuthorName != Label.currentUserName) {
let breezemoonAuthorThumbnailURL48 = data.bz.breezemoonAuthorThumbnailURL48;
let breezemoonContent = data.bz.breezemoonContent;
let breezemoonOId = data.bz.oId;
let list = $($(".active-bz-list")[0]);
list.prepend(
"<li style=\"display: none\">\n" +
"<a href=\"" + Label.servePath + "/member/" + breezemoonAuthorName + "\">\n" +
"<span class=\"avatar-small slogan\" aria-label=\"" + breezemoonAuthorName + "\" style=\"background-image: url(" + breezemoonAuthorThumbnailURL48 + ")\"></span>\n" +
"</a>\n" +
"<a href=\"" + Label.servePath + "/member/" + breezemoonAuthorName + "/breezemoons/" + breezemoonOId + "\" class=\"title\">" + breezemoonContent + "</a>\n" +
"</li>"
);

list.find("li:last").fadeOut(199, function () {
list.find("li:last").remove();
});
list.find("li:first").slideDown(200);
Util.listenUserCard();
}
let breezemoonAuthorThumbnailURL48 = data.bz.breezemoonAuthorThumbnailURL48;
let breezemoonContent = data.bz.breezemoonContent;
let breezemoonOId = data.bz.oId;
let list = $($(".active-bz-list")[0]);
list.prepend(
"<li style=\"display: none\">\n" +
"<a href=\"" + Label.servePath + "/member/" + breezemoonAuthorName + "\">\n" +
"<span class=\"avatar-small slogan\" aria-label=\"" + breezemoonAuthorName + "\" style=\"background-image: url(" + breezemoonAuthorThumbnailURL48 + ")\"></span>\n" +
"</a>\n" +
"<a href=\"" + Label.servePath + "/member/" + breezemoonAuthorName + "/breezemoons/" + breezemoonOId + "\" class=\"title\">" + breezemoonContent + "</a>\n" +
"</li>"
);

list.find("li:last").fadeOut(199, function () {
list.find("li:last").remove();
});
list.find("li:first").slideDown(200);
Util.listenUserCard();
}
break;
case 'refreshNotification':
Expand Down

0 comments on commit a24b449

Please sign in to comment.