提交 21571320 编写于 作者: U unknown

add user

Signed-off-by: Nunknown <sijunjie@huawei.com>
上级 5e72cd63
...@@ -494,8 +494,8 @@ export default function StartAbilityForResult() { ...@@ -494,8 +494,8 @@ export default function StartAbilityForResult() {
}).catch((error) => { }).catch((error) => {
console.error(' getTopAbility error: ' + JSON.stringify(error)); console.error(' getTopAbility error: ' + JSON.stringify(error));
}); });
console.log(" checkAbilityInfo deviceId : " + details1.ability.deviceId); console.log(" checkAbilityInfo deviceId : " + details1.deviceId);
DeviceId = details1.ability.deviceId; DeviceId = details1.deviceId;
await Utils.sleep(500); await Utils.sleep(500);
var str = { var str = {
'want': { 'want': {
...@@ -536,8 +536,8 @@ export default function StartAbilityForResult() { ...@@ -536,8 +536,8 @@ export default function StartAbilityForResult() {
}).catch((error) => { }).catch((error) => {
console.error(' getTopAbility error: ' + JSON.stringify(error)); console.error(' getTopAbility error: ' + JSON.stringify(error));
}); });
console.log(" checkAbilityInfo deviceId : " + details1.ability.deviceId); console.log(" checkAbilityInfo deviceId : " + details1.deviceId);
DeviceId = details1.ability.deviceId; DeviceId = details1.deviceId;
await Utils.sleep(1000); await Utils.sleep(1000);
var str = { var str = {
'want': { 'want': {
......
...@@ -201,8 +201,8 @@ export default function StartAbilityForResult(abilityContext) { ...@@ -201,8 +201,8 @@ export default function StartAbilityForResult(abilityContext) {
}).catch((error) => { }).catch((error) => {
console.error(' getTopAbility error: ' + JSON.stringify(error)); console.error(' getTopAbility error: ' + JSON.stringify(error));
}); });
console.log(" checkAbilityInfo deviceId : " + details1.ability.deviceId); console.log(" checkAbilityInfo deviceId : " + details1.deviceId);
DeviceId = details1.ability.deviceId; DeviceId = details1.deviceId;
setTimeout(async () => { setTimeout(async () => {
var str = { var str = {
"deviceId": DeviceId, "deviceId": DeviceId,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册