From 4415682b0ac8127fd06b6f6e39141813c421d4ca Mon Sep 17 00:00:00 2001 From: zhou-liting125 Date: Mon, 21 Feb 2022 11:55:48 +0800 Subject: [PATCH] Add an interface for JS side service to obtain tokenid Signed-off-by: zhou-liting125 --- runtime/main/extend/systemplugin/napi/rpc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/main/extend/systemplugin/napi/rpc.js b/runtime/main/extend/systemplugin/napi/rpc.js index 11ec9675..a5141d9c 100644 --- a/runtime/main/extend/systemplugin/napi/rpc.js +++ b/runtime/main/extend/systemplugin/napi/rpc.js @@ -694,6 +694,11 @@ export const IPCSkeletonMock = { " Previewer may be different from that on a real device.") return paramMock.paramNumberMock }, + getCallingTokenId: function () { + console.warn("IPCSkeleton.getCallingTokenId interface mocked in the Previewer. How this interface works on the" + + " Previewer may be different from that on a real device.") + return paramMock.paramNumberMock + }, getCallingDeviceID: function () { console.warn("IPCSkeleton.getCallingDeviceID interface mocked in the Previewer. How this interface works on the" + " Previewer may be different from that on a real device.")