@cloudbase/lowcode-builder 1.10.11 → 1.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.10.11",
3
+ "version": "1.10.12",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -49,8 +49,8 @@
49
49
  "dependencies": {
50
50
  "@babel/core": "7.21.4",
51
51
  "@babel/preset-env": "7.21.4",
52
- "@cloudbase/cals": "^1.2.13",
53
- "@cloudbase/lowcode-generator": "^1.8.39",
52
+ "@cloudbase/cals": "^1.2.14",
53
+ "@cloudbase/lowcode-generator": "^1.8.40",
54
54
  "axios": "^0.21.0",
55
55
  "chalk": "^2.4.2",
56
56
  "compare-versions": "^3.6.0",
@@ -464,7 +464,7 @@
464
464
  <script type="module" src="/src/index.jsx"></script>
465
465
  <% } %> <% if(!isAdminPortal){ %>
466
466
  <script src="<%= wedaPrivateConfigEndpoint ? wedaPrivateConfigEndpoint : '' %>/weda-config/weda-private.js"></script>
467
- <script src="<%= cdnEndpoints.cloudbase %>/cloudbase-js-sdk/2.10.0/cloudbase.full.js?v=1"></script>
467
+ <script src="<%= cdnEndpoints.cloudbase %>/cloudbase-js-sdk/2.12.1/cloudbase.full.js?v=1"></script>
468
468
  <script
469
469
  crossorigin
470
470
  src="<%= cdnEndpoints.cdngo %>/lcap/lcap-resource-cdngo/-/release/_npm/cloudbase-adapter-privatelink@0.0.2/dist/index.js"
@@ -528,7 +528,7 @@
528
528
  crossorigin="anonymous"
529
529
  src="<%=
530
530
  cdnEndpoints.cdngo
531
- %>/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@1.0.96/dist/h5.browser.js"
531
+ %>/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@1.0.101/dist/h5.browser.js"
532
532
  ></script>
533
533
  <script
534
534
  crossorigin
@@ -557,7 +557,7 @@
557
557
  crossorigin
558
558
  src="<%=
559
559
  cdnEndpoints.cdngo
560
- %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.926b2927f2d1793333f5.bundle.js"
560
+ %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.dc89cc660b826672d15a.bundle.js"
561
561
  ></script>
562
562
  </body>
563
563
  </html>
@@ -137,13 +137,14 @@ Component({
137
137
  miniprogram: (config.miniprogram || []).map(v => ({
138
138
  ...v,
139
139
  label: v.label?.replace(/^微信小程序/, '')
140
- })),
140
+ })),
141
+ access: { ...config.access },
141
142
  };
142
143
 
143
144
  const enableSms = this._getEnableSms(settingData);
144
145
  const smsDelay =
145
146
  enableSms && !cache.phoneNum ? Math.max(0, Math.ceil(((cache?.smsDelay || 0) - +new Date()) / 1000)) : 0;
146
- const baseInfoShow = query.baseInfoShow === 'true'
147
+ const baseInfoShow = !settingData.access?.disabledCollectUserInfo && query.baseInfoShow === 'true'
147
148
  const currentLoginType = query.currentLoginType || settingData.miniprogram.filter(v => !AUTO_LOGIN_TYPE.includes(v.type))?.[0]?.type || settingData.miniprogram[0]?.type;
148
149
  const currentLoginList = query.currentLoginType ? [] : settingData.miniprogram.filter(v => v.type !== currentLoginType)
149
150
 
@@ -276,6 +277,10 @@ Component({
276
277
  }
277
278
  },
278
279
  getCaptcha(e) {
280
+ if (!this.checkAgreement()) {
281
+ return;
282
+ }
283
+
279
284
  if (this.data.phoneValidateMessage) {
280
285
  wx.showToast({
281
286
  icon: 'error',
@@ -418,7 +423,7 @@ Component({
418
423
  SDKVersion
419
424
  } = wx.getSystemInfoSync();
420
425
  // 2.21.2以下版本不支持获取用户头像/昵称,暂时跳过
421
- if ((!avatarUrl || !nickName) && this.compareVersion(SDKVersion, '2.21.2') >= 0) {
426
+ if (!this.data.settingData?.access?.disabledCollectUserInfo && (!avatarUrl || !nickName) && this.compareVersion(SDKVersion, '2.21.2') >= 0) {
422
427
  const avatarRealUrl = await this.getAvatarUrl(avatarUrl)
423
428
  this.setData({
424
429
  avatarRealUrl,