diff --git a/README_ZH.md b/README_ZH.md index 53e4c12..265933f 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -197,10 +197,6 @@ wallpaper.getWallpaperExtension((error, extension) => { console.error(` failed to getWallpaperExtensionInfo because: ` + JSON.stringify(error)); return; } - console.log(`success to getWallpaperExtensionInfo`); - console.log(`current wallpaper extension's name: ` + extension.context.currentHapModuleInfo.name); - console.log(`current wallpaper extension's description: ` + extension.context.currentHapModuleInfo.description); - console.log(`current wallpaper extension's icon: ` + extension.context.currentHapModuleInfo.icon); }); ``` diff --git a/services/src/wallpaper_service.cpp b/services/src/wallpaper_service.cpp index 5044b48..3fe4cc7 100644 --- a/services/src/wallpaper_service.cpp +++ b/services/src/wallpaper_service.cpp @@ -622,9 +622,9 @@ IWallpaperService::mapFD WallpaperService::GetPixelMap(int wallpaperType) mtx.lock(); mapFD mapFd; HILOG_INFO("WallpaperService::getPixelMap --> start "); - bool perGet = WPCheckCallingPermission(WALLPAPER_PERMISSION_NAME_SET_WALLPAPER); + bool permissionGet = WPCheckCallingPermission(WALLPAPER_PERMISSION_NAME_SET_WALLPAPER); bool perUserStorage = WPCheckCallingPermission(WALLPAPER_PERMISSION_NAME_READ_USER_STORAGE); - if (!perGet || !perUserStorage) { + if (!permissionGet || !perUserStorage) { HILOG_INFO("GetPixelMap no get or no user read permission!"); mtx.unlock(); return mapFd;