From 579c2fccfe70da340ba75b4f147aa6addcadb72c Mon Sep 17 00:00:00 2001 From: shanchengding Date: Tue, 1 Jul 2025 17:27:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shanchengding --- .../js-apis-photoAccessHelper-sys.md | 24 +++++++------- .../js-apis-photoAccessHelper.md | 32 +++++++++---------- .../js-apis-photoAccessHelper-sys.md | 28 ++++++++-------- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md index 1db56697ce7..6b96645effe 100644 --- a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md +++ b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md @@ -2257,13 +2257,13 @@ Favorites or unfavorites this file. This API uses an asynchronous callback to re For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2325,13 +2325,13 @@ Favorites or unfavorites this file asset. This API uses a promise to return the For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2389,13 +2389,13 @@ Private files are stored in the private album. After obtaining private files fro For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2459,13 +2459,13 @@ Private files are stored in the private album. After obtaining private files fro For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2666,13 +2666,13 @@ Sets user comment information of an image or video. This API uses a promise to r For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2730,13 +2730,13 @@ Sets user comment information of an image or video. This API uses an asynchronou For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | diff --git a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md index ebde3dce883..d6a6d2531ec 100644 --- a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md +++ b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md @@ -79,12 +79,12 @@ When you call this API in Picker mode, you do not need to request the ohos.permi For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -145,12 +145,12 @@ When you call this API in Picker mode, you do not need to request the ohos.permi For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -1411,12 +1411,12 @@ For details about the error codes, see [Universal Error Codes](../errorcode-univ If error code 14000001 is returned, refer to [PhotoKeys](#photokeys) to learn about the format and length requirements of the file name. -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000001 | Invalid display name. | | 14000011 | System inner fail. | @@ -1476,12 +1476,12 @@ For details about the error codes, see [Universal Error Codes](../errorcode-univ If error code 14000001 is returned, refer to [PhotoKeys](#photokeys) to learn about the format and length requirements of the file name. -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000001 | Invalid display name. | | 14000011 | System inner fail. | @@ -2828,12 +2828,12 @@ Obtains image and video assets. This API uses an asynchronous callback to return For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2893,12 +2893,12 @@ Obtains image and video assets. This API uses a promise to return the result. For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2951,12 +2951,12 @@ Commits the modification on the album attributes to the database. This API uses For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3007,12 +3007,12 @@ Commits the modification on the album attributes to the database. This API uses For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | diff --git a/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md b/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md index 3ac03349674..061e0261f19 100644 --- a/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md +++ b/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md @@ -2940,13 +2940,13 @@ setFavorite(favoriteState: boolean, callback: AsyncCallback<void>): void 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3008,13 +3008,13 @@ setFavorite(favoriteState: boolean): Promise<void> 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3072,13 +3072,13 @@ setHidden(hiddenState: boolean, callback: AsyncCallback<void>): void 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3142,13 +3142,13 @@ setHidden(hiddenState: boolean): Promise<void> 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3349,13 +3349,13 @@ setUserComment(userComment: string): Promise<void> 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3413,13 +3413,13 @@ setUserComment(userComment: string, callback: AsyncCallback<void>): void 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -4650,13 +4650,13 @@ recoverAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void&g 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | -- Gitee