Description:readme的图片替换

Match-id-0e5d33a5739cf68f1d815bd8d54480e38bb9a797
This commit is contained in:
li-li-wang 2023-08-22 10:47:51 +08:00 committed by baoyang
parent f160a78fb7
commit 061babf627
4 changed files with 18 additions and 18 deletions

View File

@ -212,7 +212,7 @@ struct changeEncryption {
try {
uriInfo = new fileUri.FileUri(uri);
} catch (err) {
console.log(TAG, 'fileUri fail', err.code, err.message)
console.log(TAG, 'fileUri fail', err.code, err.message);
}
try {
file = await fs.open(uri, fs.OpenMode.READ_WRITE);
@ -222,7 +222,7 @@ struct changeEncryption {
try {
await fs.unlink(uriInfo.path);
} catch (err) {
console.log(TAG, 'unlink fail', err.code, err.message)
console.log(TAG, 'unlink fail', err.code, err.message);
}
this.showErrorDialog($r('app.string.TITLE_APP_ERROR') as any,$r('app.string.MESSAGE_APP_INSIDE_ERROR') as any);
await this.catchProcess();
@ -236,12 +236,12 @@ struct changeEncryption {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
try {
await fs.unlink(uriInfo.path);
} catch (err) {
console.log(TAG, 'unlink fail', err.code, err.message)
console.log(TAG, 'unlink fail', err.code, err.message);
}
let errorInfo = getAlertMessage(
err, $r('app.string.TITLE_SERVICE_ERROR'), $r('app.string.MESSAGE_RECOVER_DLP_ERROR'));
@ -253,7 +253,7 @@ struct changeEncryption {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
if (globalThis.requestIsFromSandBox) { //no need close dlp file in sandbox
try {

View File

@ -398,7 +398,7 @@ struct DlpDialog {
try {
uriInfo = new fileUri.FileUri(uri);
} catch (err) {
console.log(TAG, 'fileUri fail', err.code, err.message)
console.log(TAG, 'fileUri fail', err.code, err.message);
}
try {
file = await fs.open(uri, fs.OpenMode.READ_WRITE);
@ -408,7 +408,7 @@ struct DlpDialog {
try {
await fs.unlink(uriInfo.path);
} catch (err) {
console.log(TAG, 'unlink fail', err.code, err.message)
console.log(TAG, 'unlink fail', err.code, err.message);
}
this.showErrorDialog($r('app.string.TITLE_APP_ERROR') as any, $r('app.string.MESSAGE_APP_INSIDE_ERROR') as any);
this.processing = false;
@ -461,12 +461,12 @@ struct DlpDialog {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
try {
await fs.unlink(uriInfo.path);
} catch (err) {
console.log(TAG, 'unlink fail', err.code, err.message)
console.log(TAG, 'unlink fail', err.code, err.message);
}
let errorInfo = getAlertMessage(err, $r('app.string.TITLE_SERVICE_ERROR'), $r('app.string.MESSAGE_GENERATE_DLP_ERROR'));
this.showErrorDialog(errorInfo.title, errorInfo.msg);

View File

@ -169,7 +169,7 @@ struct Sa {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
await globalThis.dsHelper.delete(uri);
this.isOK = false;
@ -188,7 +188,7 @@ struct Sa {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
await globalThis.dsHelper.delete(uri);
fs.closeSync(srcFd);
@ -204,7 +204,7 @@ struct Sa {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
await globalThis.dsHelper.delete(uri);
fs.closeSync(srcFd);
@ -228,7 +228,7 @@ struct Sa {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
await globalThis.dsHelper.delete(uri);
fs.closeSync(srcFd);
@ -264,16 +264,16 @@ struct Sa {
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
console.log(TAG, 'close fail', err.code, err.message);
}
return;
}).catch(async (err) => {
console.error(TAG, 'DocumentViewPicker failed', err.code, err.message);
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message)
}
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message);
}
await globalThis.dsHelper.delete(uri);
this.isOK = false;
await startAlertAbility(globalThis.context, { code: Constants.ERR_JS_APP_INSIDE_ERROR });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 15 KiB