|
@@ -35,13 +35,22 @@ export function getPanoInfo(ok, no) {
|
|
*/
|
|
*/
|
|
export function getFdkkInfo(data, ok, no) {
|
|
export function getFdkkInfo(data, ok, no) {
|
|
// 使用环境变量判断是否为离线模式
|
|
// 使用环境变量判断是否为离线模式
|
|
|
|
+ console.log(data, 'config.isOfflineMode')
|
|
if (config.isOfflineMode) {
|
|
if (config.isOfflineMode) {
|
|
// 离线包环境,读取本地JSON文件
|
|
// 离线包环境,读取本地JSON文件
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
const vrId = data.num || browser.getURLParam("vr");
|
|
const vrId = data.num || browser.getURLParam("vr");
|
|
// 构建scene.json文件的路径
|
|
// 构建scene.json文件的路径
|
|
- const sceneJsonPath = `/scene_view_data/${vrId}/data/scene.json`;
|
|
|
|
-
|
|
|
|
|
|
+ console.log(data, 'data')
|
|
|
|
+ let sceneJsonPath = ''
|
|
|
|
+ if(data.currentScene.version && data.currentScene.version == 'V4') {
|
|
|
|
+ sceneJsonPath = `/scene_view_data/${vrId}/data/scene.json`;
|
|
|
|
+ console.log(1)
|
|
|
|
+ } else {
|
|
|
|
+ console.log(2)
|
|
|
|
+ sceneJsonPath = `/data/data${vrId}/scene.json`
|
|
|
|
+ }
|
|
|
|
+ console.log(sceneJsonPath, 'sceneJsonPath')
|
|
fetch(sceneJsonPath)
|
|
fetch(sceneJsonPath)
|
|
.then(response => response.json())
|
|
.then(response => response.json())
|
|
.then(data => {
|
|
.then(data => {
|