|
@@ -113,9 +113,6 @@ router.get("/:record_id", async function (req, res) {
|
|
} else {
|
|
} else {
|
|
recordInfo.type = "";
|
|
recordInfo.type = "";
|
|
}
|
|
}
|
|
- // http://127.0.0.1:20040/?zs_interval=1732419124661/api/v1/files/6a3beffd24ee92a0b0846afaf2196b14
|
|
|
|
-
|
|
|
|
- // http://localhost:3000/?zs_interval=1732420198559/api/v1/files/aace8ebb259f6e70ef5b0c1f8efde3ae
|
|
|
|
function getFileUrl(elm) {
|
|
function getFileUrl(elm) {
|
|
// 获取请求的来源域名
|
|
// 获取请求的来源域名
|
|
const host = req.headers['host']; // 主机名 + 端口
|
|
const host = req.headers['host']; // 主机名 + 端口
|
|
@@ -124,7 +121,7 @@ router.get("/:record_id", async function (req, res) {
|
|
return "http://localhost:3000" + `/api_files_${elm.file_id}`;
|
|
return "http://localhost:3000" + `/api_files_${elm.file_id}`;
|
|
}
|
|
}
|
|
if (`${origin}`.indexOf("zs_interval") > -1) {
|
|
if (`${origin}`.indexOf("zs_interval") > -1) {
|
|
- return `http://${origin.replace('/static/', '')}/api/v1/files/${elm.file_id}`;
|
|
|
|
|
|
+ return `api_files_${elm.file_id}`;
|
|
}
|
|
}
|
|
return `${origin}api_files_${elm.file_id}`;
|
|
return `${origin}api_files_${elm.file_id}`;
|
|
}
|
|
}
|