Skip to content

Commit c0ce6b9

Browse files
author
sanfordsun
committed
feat: cloud init
1 parent 190c134 commit c0ce6b9

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

miniprogram/packageAPI/pages/chattool/activity_assist/activity_assist.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const config = require('../../../../config')
12
const util = require('../../../../util/util')
23
const systemInfo = wx.getSystemInfoSync()
34
Page({
@@ -29,13 +30,9 @@ Page({
2930
}
3031

3132
wx.cloud.init({
32-
// env 参数说明:
33-
// env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
34-
// 此处请填入环境 ID, 环境 ID 可打开云控制台查看
35-
// 如不填则使用默认环境(第一个创建的环境)
36-
env: "test-f0b102",
33+
env: config.envId,
3734
traceUser: true,
38-
});
35+
})
3936

4037
this.setData({
4138
theme: wx.getSystemInfoSync().theme || 'light'

miniprogram/packageAPI/pages/chattool/material_open/material_open.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ Page({
3030
this._activityId = options.activityId
3131

3232
wx.cloud.init({
33-
// env 参数说明:
34-
// env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
35-
// 此处请填入环境 ID, 环境 ID 可打开云控制台查看
36-
// 如不填则使用默认环境(第一个创建的环境)
37-
env: "test-f0b102",
3833
traceUser: true,
3934
});
4035

miniprogram/packageChatTool/entry.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
wx.cloud.init({
2-
// env 参数说明:
3-
// env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
4-
// 此处请填入环境 ID, 环境 ID 可打开云控制台查看
5-
// 如不填则使用默认环境(第一个创建的环境)
6-
env: "test-f0b102",
2+
env: 'release-b86096',
73
traceUser: true,
8-
});
4+
})
95

106
const enterOptions = wx.getEnterOptionsSync()

0 commit comments

Comments
 (0)