|
@@ -4,14 +4,19 @@ import initTinyUSDZ from "../js/tinyusdz.js"
|
|
|
|
|
|
import { OrbitControls } from "../js/OrbitControls.js"
|
|
|
|
|
|
-const urlAll = window.location.href.split("?m=")[1]
|
|
|
+const cosBaseUrl = 'https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/'
|
|
|
|
|
|
+let urlAll = window.location.href.split("?m=")[1];
|
|
|
+urlAll = urlAll.split("&")[0]
|
|
|
+// console.log('decodeURIComponent(urlAll):', decodeURIComponent(urlAll));
|
|
|
+urlAll = decodeURIComponent(urlAll) || 'urlAll'
|
|
|
// console.log(123456,urlAll);
|
|
|
|
|
|
-// const USDZ_FILEPATH = `https://4dkankan.oss-cn-shenzhen.aliyuncs.com/sxz/${urlAll}.usdz`;
|
|
|
-// const USDZ_FILEPATH = `https://us-test.4dkankan.com/20241202dome/Shuiyueguanyin.usdz`;
|
|
|
-const USDZ_FILEPATH = `https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/kanzhan/2025/06/23/data.usdz`;
|
|
|
-// const USDZ_FILEPATH = `https://3d-usdz.4dkankan.com/sxz/${urlAll}.usdz`
|
|
|
+// 测试打开这个链接
|
|
|
+// const USDZ_FILEPATH = `https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/kanzhan/2025/08/13/e8aecd235d7d40e49301b901c6c00d51`;
|
|
|
+
|
|
|
+// 正式打开这个链接
|
|
|
+const USDZ_FILEPATH = urlAll.includes('http') ? urlAll : cosBaseUrl + urlAll;
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
|
const loadingBar = document.getElementById("loading") // 获取加载条元素
|