Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Sep 5, 2024
1 parent 5011399 commit 80d4f39
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ public synchronized void showIndex(final RequestContext context) {
Elements imgElements = doc.select("img");
for (Element img : imgElements) {
String src = img.attr("src");
// 在 src 后面加上 ?imageView2/1/w/150/h/150/interlace/0/q/90
img.attr("src", src + "?imageView2/1/w/150/h/150/interlace/0/q/90");
// 在 src 后面加上 ?imageView2/0/w/150/h/150/interlace/0/q/90
img.attr("src", src + "?imageView2/0/w/150/h/150/interlace/0/q/90");
}

// 更新 message 中的 content 字段
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/js/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ var ChatRoomChannel = {
let imgList = dom.querySelectorAll('img');
imgList.forEach(ele=>{
//if(ele.src.startsWith('https://file.fishpi.cn')){
ele.src = ele.src + '?imageView2/1/w/150/h/150/interlace/0/q/90'
ele.src = ele.src + '?imageView2/0/w/150/h/150/interlace/0/q/90'
//}
})
return dom.innerHTML;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/js/channel.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/resources/js/chat-room.js
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ border-bottom: none;
imgList.forEach(ele=>{
ele.setAttribute('originalsrc', ele.src);
//if(ele.src.startsWith('https://file.fishpi.cn')){
ele.src = ele.src + '?imageView2/1/w/150/h/150/interlace/0/q/90'
ele.src = ele.src + '?imageView2/0/w/150/h/150/interlace/0/q/90'
//}
})
return dom.innerHTML;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/js/chat-room.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80d4f39

Please sign in to comment.