Browse Source

Merge branch 'master' of http://192.168.0.115:3000/bill/three-dimensional-covert

bill 1 năm trước cách đây
mục cha
commit
c9203c9bff
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      service/PanoBoxFrame.js

+ 10 - 0
service/PanoBoxFrame.js

@@ -3524,6 +3524,16 @@ async compute(dataList) {
         {
             this.removedDatas = {}
             let panoIds = Object.keys(this.datas)
+
+            let panoIds = Object.keys(this.datas).filter(id=>{
+                if(!player.model.panos.index[id]){//排除数据错误
+                    this.removedDatas[id] = this.datas[id]
+                    delete this.datas[id]
+                    return
+                }
+                return true
+            })
+
             let len = panoIds.length
             for (let i = 0; i < len; i++) {
                 let pano0 = player.model.panos.index[panoIds[i]]