diff --git a/AppScope/app.json b/AppScope/app.json index 201d207..184ff5b 100644 --- a/AppScope/app.json +++ b/AppScope/app.json @@ -2,8 +2,8 @@ "app": { "bundleName": "com.ohos.dlpmanager", "vendor": "example", - "versionCode": 1000103, - "versionName": "1.0.1.03", + "versionCode": 1000105, + "versionName": "1.0.1.05", "icon": "$media:app_icon", "label": "$string:app_name", "minAPIVersion": 12, diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 281987a..0fb490c 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -16,8 +16,8 @@ "app": { "bundleName": "com.ohos.dlpmanager", "vendor": "example", - "versionCode": 1000103, - "versionName": "1.0.1.03", + "versionCode": 1000105, + "versionName": "1.0.1.05", "icon": "$media:app_icon", "label": "$string:app_name", "minAPIVersion": 12, diff --git a/entry/src/main/ets/pages/encryptedSharing.ets b/entry/src/main/ets/pages/encryptedSharing.ets index 3df06d5..45afe99 100644 --- a/entry/src/main/ets/pages/encryptedSharing.ets +++ b/entry/src/main/ets/pages/encryptedSharing.ets @@ -137,6 +137,7 @@ struct encryptedSharing { } private async beginShareEncrypt() { + HiLog.info(TAG, `begin Share Encrypt start`); if (this.checkCloudPhone(this.inputValue)) { this.enabledFocus = false; this.isConfirmButtonEnabled = false; @@ -369,13 +370,13 @@ struct encryptedSharing { HiLog.error(TAG, `getOsAccountInfo failed: ${JSON.stringify(err)}`); this.showToast($r('app.string.Share_File_Encrypted_Failed')); this.enabledFocus = true; - this.isConfirmButtonEnabled = true; + this.isConfirmButtonEnabled = this.inputValue.length > 0; return; } } catch { this.showToast($r('app.string.network_invalid')); this.enabledFocus = true; - this.isConfirmButtonEnabled = true; + this.isConfirmButtonEnabled = this.inputValue.length > 0; } } @@ -613,6 +614,7 @@ struct encryptedSharing { .onReceive((data) => { HiLog.info(TAG, `data.status: ${JSON.stringify(data.status)}`); let res = data.result as Record; + HiLog.info(TAG, `res.code: ${JSON.stringify(res.code)}`); if (data.status) { this.ownerAccount = res.uid; this.ownerAccountID = res.uid;