function request(uuid) {
// 旧资源请求地址
const VERSION_URL = `http://sf-2021.oss-cn-beijing.aliyuncs.com/ky-model/58/${uuid}/opt/model/model_v3.json`
// KTX2 资源地址
const VERSION_KTX2_URL = `http://sf-2021.oss-cn-beijing.aliyuncs.com/ky-model/58/${uuid}/model/glb/8135092ac93f436d9b22bcdad320b9b3`
return axios.request({
method: 'get',
url: VERSION_KTX2_URL,
responseType: 'arraybuffer',
})
.catch(err => axios.request({
method: 'get',
url: VERSION_URL,
responseType: 'arraybuffer',
}))
}
// 旧资源
let uuid1 = '37eb2d4330de4fcbaa675b07ef09be24'
// KTX2
let uuid2 = '14749ef5629c4360bd46fc616dcd3331'
try{
request(uuid1).then(res=>{
console.log( res.data)
})
}
console