From 8af28435ea454890992d5580398b54025ea89cb0 Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Wed, 8 Jun 2022 19:55:02 +0800 Subject: [PATCH] =?UTF-8?q?XTS=E9=97=AE=E9=A2=98=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../entry/src/main/js/MainAbility2/pages/index/index.js | 5 ++--- .../entry/src/main/js/test/ApplicationInfoJsunit.test.js | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js b/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js index 202d13922..1451704d8 100644 --- a/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js +++ b/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js @@ -39,9 +39,8 @@ export default { console.info('======Start MainAbility2 onShow======'); featureAbility.getWant( (err, data) => { - console.info("==========data=" + JSON.stringify(data)); - console.info("========== zxf data123 =" + JSON.stringify(data) + JSON.stringify(err)); if (data.uri == '{true,true,false}'){ + console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); event = data.uri commonEventPublishData = { data: event, @@ -49,7 +48,7 @@ export default { commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent', commonEventPublishData, PublishCallBackOne); } if (data.type == 'MIMETYPE'){ - console.info("========== zxf data124 =" + JSON.stringify(data) + JSON.stringify(err)); + console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); event = data.type commonEventPublishData = { data: event, diff --git a/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/test/ApplicationInfoJsunit.test.js b/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/test/ApplicationInfoJsunit.test.js index 897fe6b36..5a932e1ec 100644 --- a/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/test/ApplicationInfoJsunit.test.js +++ b/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/test/ApplicationInfoJsunit.test.js @@ -71,14 +71,14 @@ describe('ApplicationInfoTest', function () { } function UnSubscribeCallback() { - console.debug("====>SUB_AA_OpenHarmony_Want_0200 UnSubscribe CallBack====>"); + console.debug(TAG + "====>UnSubscribe CallBack====>"); done(); } commonEvent.createSubscriber(getCallingBundleUri).then(async (data) => { - console.info(TAG + '====>SUB_AA_OpenHarmony_Want_0200 Create Subscriber===='); + console.info(TAG + '====>Create Subscriber===='); Subscriber = data; - console.info(TAG + '====>SUB_AA_OpenHarmony_Want_0200 Create Subscriber111111111====' + JSON.stringify(data) ); + console.info(TAG + '====>Create Subscriber====' + JSON.stringify(data) ); await commonEvent.subscribe(Subscriber, SubscribeCallBackUri); }); -- GitLab