提交 79447fa9 编写于 作者: C chengxingzhen

XTS问题用例整改

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 8af28435
...@@ -40,20 +40,24 @@ export default { ...@@ -40,20 +40,24 @@ export default {
featureAbility.getWant( featureAbility.getWant(
(err, data) => { (err, data) => {
if (data.uri == '{true,true,false}'){ if (data.uri == '{true,true,false}'){
console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON
.stringify(data) + JSON.stringify(err));
event = data.uri event = data.uri
commonEventPublishData = { commonEventPublishData = {
data: event, data: event,
} }
commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent', commonEventPublishData, PublishCallBackOne); commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent',
commonEventPublishData, PublishCallBackOne);
} }
if (data.type == 'MIMETYPE'){ if (data.type == 'MIMETYPE'){
console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON
.stringify(data) + JSON.stringify(err));
event = data.type event = data.type
commonEventPublishData = { commonEventPublishData = {
data: event, data: event,
} }
commonEvent.publish('SUB_AA_OpenHarmony_Want_0300_CommonEvent', commonEventPublishData, PublishCallBackTwo); commonEvent.publish('SUB_AA_OpenHarmony_Want_0300_CommonEvent',
commonEventPublishData, PublishCallBackTwo);
} }
} }
...@@ -62,6 +66,4 @@ export default { ...@@ -62,6 +66,4 @@ export default {
onReady() { onReady() {
console.info('ApplicationInfo MainAbility2 onReady'); console.info('ApplicationInfo MainAbility2 onReady');
}, },
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册