!310 fix dlp_file name.

Merge pull request !310 from 神里linghui/master
This commit is contained in:
openharmony_ci 2024-10-26 03:49:08 +00:00 committed by Gitee
commit cbb8d4544a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 12 additions and 4 deletions

View File

@ -2,8 +2,8 @@
"app": {
"bundleName": "com.ohos.dlpmanager",
"vendor": "example",
"versionCode": 1000114,
"versionName": "1.0.1.14",
"versionCode": 1000115,
"versionName": "1.0.1.15",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 12,

View File

@ -16,8 +16,8 @@
"app": {
"bundleName": "com.ohos.dlpmanager",
"vendor": "example",
"versionCode": 1000114,
"versionName": "1.0.1.14",
"versionCode": 1000115,
"versionName": "1.0.1.15",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 12,

View File

@ -232,6 +232,9 @@ export default class ViewAbility extends ServiceExtensionAbility {
'linkFileWriteable': {
'name': this.linkFileWriteable
},
'fileName': {
'name': this.fileName
},
'ohos.dlp.params.index': this.appIndex,
'ohos.dlp.params.moduleName': this.sandboxModuleName,
'ohos.dlp.params.securityFlag': this.authPerm ===
@ -392,6 +395,11 @@ export default class ViewAbility extends ServiceExtensionAbility {
await this.sendDlpFileOpenFault(
Constants.DLP_FILE_PARSE_ERROR, this.sandboxBundleName, -1, (err as BusinessError<string>).data
); // 103:DLP_FILE_PARSE_ERROR
if (err.code === Constants.ERR_JS_NOT_AUTHORIZED_APPLICATION ) {
await this.callAlertAbility({code: Constants.ERR_JS_NOT_AUTHORIZED_APPLICATION} as BusinessError);
return;
}
let accountFlag: boolean = true;
if (this.accountType === dlpPermission.AccountType.DOMAIN_ACCOUNT &&
err.code === Constants.ERR_JS_USER_NO_PERMISSION) {