From 4651ee07dd299db251d0147595101ad03b49bdcc Mon Sep 17 00:00:00 2001 From: raoxian Date: Wed, 16 Feb 2022 15:19:44 +0800 Subject: [PATCH 1/2] update securitylabel.js Signed-off-by: raoxian --- runtime/main/extend/systemplugin/napi/securitylabel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/securitylabel.js b/runtime/main/extend/systemplugin/napi/securitylabel.js index cfe0c6ee..a2ee81bb 100644 --- a/runtime/main/extend/systemplugin/napi/securitylabel.js +++ b/runtime/main/extend/systemplugin/napi/securitylabel.js @@ -22,10 +22,10 @@ export function mockSecurityLabel() { " Previewer may be different from that on a real device.") const len = args.length if (typeof args[len - 1] === 'function') { - args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock) + args[len - 1].call(this, paramMock.businessErrorMock) } else { return new Promise((resolve, reject) => { - resolve(paramMock.paramBooleanMock); + resolve(); }) } }, From 18aa412066f43d0a1a9ae2fc5eec35272dbcfe49 Mon Sep 17 00:00:00 2001 From: raoxian Date: Wed, 16 Feb 2022 16:42:24 +0800 Subject: [PATCH 2/2] update securitylabel.js Signed-off-by: raoxian --- runtime/main/extend/systemplugin/napi/securitylabel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/main/extend/systemplugin/napi/securitylabel.js b/runtime/main/extend/systemplugin/napi/securitylabel.js index a2ee81bb..3189193f 100644 --- a/runtime/main/extend/systemplugin/napi/securitylabel.js +++ b/runtime/main/extend/systemplugin/napi/securitylabel.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at