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 202d1392209a9e8efe9d30f276351e5ab42e8025..1451704d801b1d4339a286ca5c9e0779c64113a5 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 897fe6b36412c9cc9586424a7856d2fb442b26e6..5a932e1eceac1dec829f5d1a7ff56f20ab006b2a 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); });