更新 file-share-frontend/script.js
This commit is contained in:
@@ -26,7 +26,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await fetch('https://share.ssplus.cn/upload', {
|
||||
const response = await fetch('<你的后端地址>/upload', {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
});
|
||||
@@ -77,7 +77,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
}
|
||||
|
||||
// 构建下载URL
|
||||
let downloadUrl = `https://share.ssplus.cn/file/${fileId}`;
|
||||
let downloadUrl = `<你的后端地址>/file/${fileId}`;
|
||||
if (password) {
|
||||
downloadUrl += `?password=${encodeURIComponent(password)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user