|
@@ -202,7 +202,13 @@ export const getFuseImage = async (
|
|
if(typeMap.sdk.store?.getValue('metadata')?.floorPlanUser) {
|
|
if(typeMap.sdk.store?.getValue('metadata')?.floorPlanUser) {
|
|
let num = typeMap.sdk.store?.getValue('metadata').num
|
|
let num = typeMap.sdk.store?.getValue('metadata').num
|
|
let floorId = typeMap.sdk.core.get('Player').model.currentFloor.floorIndex
|
|
let floorId = typeMap.sdk.core.get('Player').model.currentFloor.floorIndex
|
|
- newUrl = `/oss/scene_view_data/${num}/user/cad-style-3-${floorId}.jpg?t=${Date.now()}`
|
|
|
|
|
|
+ let img = ''
|
|
|
|
+ if (typeMap.sdk.store.getValue('flooruser').type === 'image') {
|
|
|
|
+ img = `floor-upload-${floorId}.jpg`
|
|
|
|
+ } else {
|
|
|
|
+ img = `cad-style-3-${floorId}.jpg`
|
|
|
|
+ }
|
|
|
|
+ newUrl = `/oss/scene_view_data/${num}/user/${img}?t=${Date.now()}`
|
|
// /oss/scene_view_data/YZL-jm-3EOpLfZxim9/user/cad-style-3.jpg
|
|
// /oss/scene_view_data/YZL-jm-3EOpLfZxim9/user/cad-style-3.jpg
|
|
let newBlob = await urlToBlob(newUrl)
|
|
let newBlob = await urlToBlob(newUrl)
|
|
if(newBlob.type != 'text/html'){
|
|
if(newBlob.type != 'text/html'){
|