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' )
12const util = require ( '../../../../util/util' )
23const systemInfo = wx . getSystemInfoSync ( )
34Page ( {
@@ -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'
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11wx . 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
106const enterOptions = wx . getEnterOptionsSync ( )
You can’t perform that action at this time.
0 commit comments