Skip to content

Commit ce893a4

Browse files
author
v_guanglwen
committed
fix: Delete test cloud environment
1 parent 0208155 commit ce893a4

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎miniprogram/config.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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',

‎miniprogram/packageAPI/pages/ai/mobilenet/classify.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 => {

‎miniprogram/packageAPI/pages/ai/mobilenet_int8/classify.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 => {

‎miniprogram/packageAPI/pages/ai/style-trans/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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`)

‎miniprogram/packageAPI/pages/ar/3dmarker-ar/Components/arModelComponent.js‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
const config = require('../../../../../config')
2+
13
Component({
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) {

0 commit comments

Comments
 (0)