File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed
packageAPI/pages/chattool Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change
1
+ const config = require ( '../../../../config' )
1
2
const util = require ( '../../../../util/util' )
2
3
const systemInfo = wx . getSystemInfoSync ( )
3
4
Page ( {
@@ -29,13 +30,9 @@ Page({
29
30
}
30
31
31
32
wx . cloud . init ( {
32
- // env 参数说明:
33
- // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
34
- // 此处请填入环境 ID, 环境 ID 可打开云控制台查看
35
- // 如不填则使用默认环境(第一个创建的环境)
36
- env : "test-f0b102" ,
33
+ env : config . envId ,
37
34
traceUser : true ,
38
- } ) ;
35
+ } )
39
36
40
37
this . setData ( {
41
38
theme : wx . getSystemInfoSync ( ) . theme || 'light'
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ Page({
30
30
this . _activityId = options . activityId
31
31
32
32
wx . cloud . init ( {
33
- // env 参数说明:
34
- // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
35
- // 此处请填入环境 ID, 环境 ID 可打开云控制台查看
36
- // 如不填则使用默认环境(第一个创建的环境)
37
- env : "test-f0b102" ,
38
33
traceUser : true ,
39
34
} ) ;
40
35
Original file line number Diff line number Diff line change 1
1
wx . cloud . init ( {
2
- // env 参数说明:
3
- // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
4
- // 此处请填入环境 ID, 环境 ID 可打开云控制台查看
5
- // 如不填则使用默认环境(第一个创建的环境)
6
- env : "test-f0b102" ,
2
+ env : 'release-b86096' ,
7
3
traceUser : true ,
8
- } ) ;
4
+ } )
9
5
10
6
const enterOptions = wx . getEnterOptionsSync ( )
You can’t perform that action at this time.
0 commit comments