File tree Expand file tree Collapse file tree
ar/3dmarker-ar/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ const config = {
1111
1212 // 云开发环境 ID
1313 envId : 'release-b86096' ,
14- // envId: 'test-f0b102',
1514
1615 // 云开发-存储 示例文件的文件 ID
1716 demoImageFileId : 'cloud://release-b86096.7265-release-b86096-1258211818/demo.jpg' ,
Original file line number Diff line number Diff line change @@ -1060,7 +1060,7 @@ export class Classifier {
10601060 wx . cloud . init ( ) ;
10611061 console . log ( "begin download model" ) ;
10621062
1063- const cloudPath = 'cloud://containertest-0gmw3ulnd8d9bc7b.636f-containertest-0gmw3ulnd8d9bc7b -1258211818/mobilenetv2-12.onnx'
1063+ const cloudPath = 'cloud://release-b86096.7265-release-b86096 -1258211818/amosaic /mobilenetv2-12.onnx'
10641064 this . downloadFile ( cloudPath , function ( r ) {
10651065 console . log ( `下载进度:${ r . progress } %,已下载${ r . totalBytesWritten } B,共${ r . totalBytesExpectedToWrite } B` )
10661066 } ) . then ( result => {
Original file line number Diff line number Diff line change @@ -1060,7 +1060,7 @@ export class Classifier {
10601060 wx . cloud . init ( ) ;
10611061 console . log ( "begin download model" ) ;
10621062
1063- const cloudPath = 'cloud://containertest-0gmw3ulnd8d9bc7b.636f-containertest-0gmw3ulnd8d9bc7b -1258211818/mobilenetv2_qat.onnx'
1063+ const cloudPath = 'cloud://release-b86096.7265-release-b86096 -1258211818/amosaic /mobilenetv2_qat.onnx'
10641064 this . downloadFile ( cloudPath , function ( r ) {
10651065 console . log ( `下载进度:${ r . progress } %,已下载${ r . totalBytesWritten } B,共${ r . totalBytesExpectedToWrite } B` )
10661066 } ) . then ( result => {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ Page({
125125 wx . cloud . init ( )
126126 console . log ( 'begin download model' )
127127
128- const cloudPath = 'cloud://containertest-0gmw3ulnd8d9bc7b.636f-containertest-0gmw3ulnd8d9bc7b -1258211818/mosaic-8.onnx'
128+ const cloudPath = 'cloud://release-b86096.7265-release-b86096 -1258211818/amosaic /mosaic-8.onnx'
129129
130130 this . downloadFile ( cloudPath , function ( r ) {
131131 console . log ( `下载进度:${ r . progress } %,已下载${ r . totalBytesWritten } B,共${ r . totalBytesExpectedToWrite } B` )
Original file line number Diff line number Diff line change 1+ const config = require ( '../../../../../config' )
2+
13Component ( {
24 behaviors : [ 'wx://component-export' ] ,
35 export ( ) {
46 return { getARModelList : this . getARModelList . bind ( this ) }
57 } ,
68 data : {
79 chooseMapFile : null ,
8- envId : 'test-f0b102' ,
910 modelName : 'arDemo' ,
1011 // 模型数据
1112 // @ modelStatus 模型状态
@@ -144,7 +145,7 @@ Component({
144145 wx . cloud . callFunction ( {
145146 name : 'ARDemo' ,
146147 config : {
147- env : this . data . envId
148+ env : config . envId
148149 } ,
149150 data : reqData
150151 } ) . then ( ( resp ) => {
@@ -276,7 +277,7 @@ Component({
276277 wx . cloud . callFunction ( {
277278 name : 'ARDemo' ,
278279 config : {
279- env : this . data . envId
280+ env : config . envId
280281 } ,
281282 data : {
282283 type : 'GetARModel' ,
@@ -354,7 +355,7 @@ Component({
354355 cloudPath : `3dmarker/arVideo${ id } .mp4` ,
355356 filePath : res . tempFiles [ 0 ] . tempFilePath , // 文件路径
356357 config : {
357- env : this . data . envId
358+ env : config . envId
358359 } ,
359360 timeout : 60000 ,
360361 success ( res ) {
You can’t perform that action at this time.
0 commit comments