Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShunCai committed Jan 25, 2022
2 parents ff759a3 + 747894d commit d85f597
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ API.Common = {
*/
getUserLogoLocalUrl(uin) {
// 头像默认PNG格式
return "Common/images/{uin}".format({
return "Common/Images/{uin}".format({
uin: uin
});
},
Expand Down
6 changes: 3 additions & 3 deletions src/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,13 @@ const ExportFiles = [{
target: 'Common/js/sidebar.js'
}, {
original: 'export/images/index.jpg',
target: 'Common/images/index.jpg'
target: 'Common/Images/index.jpg'
}, {
original: 'export/images/video-play.png',
target: 'Common/images/video-play.png'
target: 'Common/Images/video-play.png'
}, {
original: 'export/images/loading.gif',
target: 'Common/images/loading.gif'
target: 'Common/Images/loading.gif'
}, {
original: 'export/js/common.js',
target: 'Common/js/common.js'
Expand Down
8 changes: 4 additions & 4 deletions src/js/modules/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ API.Common.handerContentImages = (module, content, type) => {
if ("MD" === type) {
content.replace(/!\[.*?\]\((.+?)\)/g, function(linkmd, url) {
let custom_filename = API.Common.addDownloadTask(module, url, content);
return linkmd.replace(url, API.Common.getMediaPath(url, 'Common/images/' + custom_filename, "Messages_HTML"));
return linkmd.replace(url, API.Common.getMediaPath(url, 'Common/Images/' + custom_filename, "Messages_HTML"));
})
return content;
}
Expand All @@ -275,7 +275,7 @@ API.Common.handerContentImages = (module, content, type) => {
const $img = $(images[i]);
let url = $img.attr('orgsrc') || $img.attr('src') || '';
let custom_filename = API.Common.addDownloadTask(module, url, content);
$img.attr('src', API.Common.getMediaPath(url, 'Common/images/' + custom_filename, "Messages_HTML"));
$img.attr('src', API.Common.getMediaPath(url, 'Common/Images/' + custom_filename, "Messages_HTML"));
}
return _html.html();
}
Expand All @@ -291,7 +291,7 @@ API.Common.addDownloadTask = (module, url, content) => {
if (!custom_filename) {
custom_filename = API.Utils.newSimpleUid(8, 16);
// 添加下载任务
API.Utils.newDownloadTask(module, url, 'Common/images', custom_filename, content);
API.Utils.newDownloadTask(module, url, 'Common/Images', custom_filename, content);
QZone.Common.FILE_URLS.set(url, custom_filename);
}
return custom_filename;
Expand Down Expand Up @@ -1043,7 +1043,7 @@ API.Common.downloadUserAvatar = (user) => {
return;
}

API.Utils.newDownloadTask('Friends', avatarUrl, 'Common/images', user.uin + '', user);
API.Utils.newDownloadTask('Friends', avatarUrl, 'Common/Images', user.uin + '', user);
user.avatar = API.Common.getUserLogoUrl(user.uin);
user.custom_avatar = API.Common.getUserLogoLocalUrl(user.uin);

Expand Down

0 comments on commit d85f597

Please sign in to comment.