@cloudbase/lowcode-builder 1.10.12-private.1.3.0-0 → 1.10.12-private.1.3.0-1

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.12-private.1.3.0-0",
3
+ "version": "1.10.12-private.1.3.0-1",
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",
@@ -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
 
@@ -422,7 +423,7 @@ Component({
422
423
  SDKVersion
423
424
  } = wx.getSystemInfoSync();
424
425
  // 2.21.2以下版本不支持获取用户头像/昵称,暂时跳过
425
- 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) {
426
427
  const avatarRealUrl = await this.getAvatarUrl(avatarUrl)
427
428
  this.setData({
428
429
  avatarRealUrl,