fix:支付宝支付退款以及消息通知
This commit is contained in:
+3
-4
@@ -93,10 +93,9 @@ export const useTilesetLoader = (): UseTilesetLoaderResult => {
|
||||
});
|
||||
|
||||
try {
|
||||
// 处理跨域问题:非 localhost 访问时将 CDN URL 转换为代理路径
|
||||
// 处理跨域问题:将 CDN URL 转换为代理路径(始终使用代理,避免 CORS)
|
||||
let tilesetUrl = config.url;
|
||||
const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
|
||||
if (!isLocalhost && tilesetUrl.includes('minicdn.goflytec.com')) {
|
||||
if (tilesetUrl.includes('minicdn.goflytec.com')) {
|
||||
tilesetUrl = tilesetUrl.replace('https://minicdn.goflytec.com', '');
|
||||
console.log('[Tileset] 使用代理路径:', tilesetUrl);
|
||||
}
|
||||
@@ -127,7 +126,7 @@ export const useTilesetLoader = (): UseTilesetLoaderResult => {
|
||||
foveatedMinimumScreenSpaceErrorRelaxation: 0.0,
|
||||
|
||||
// 裁剪优化 - 减少移动时的清晰度降低
|
||||
cullWithChildrenBounds: true,
|
||||
cullWithChildrenBounds: false, // 外部 tileset 引用的模型必须关闭,否则子 tileset 会被错误裁剪
|
||||
cullRequestsWhileMoving: false, // 禁用移动时的请求裁剪
|
||||
cullRequestsWhileMovingMultiplier: 1.0,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user