mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2025-02-17 00:38:41 +00:00
commit
cbb8d4544a
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user