提交 122013c8 编写于 作者: zyjhandsome's avatar zyjhandsome

《为通知添加行为意图》wantAgent.getWantAgent接口适配新的API使用

start build
Signed-off-by: zyjhandsome's avatarzyjhandsome <zyjhandsome@126.com>
上级 13f1d527
...@@ -83,12 +83,12 @@ ...@@ -83,12 +83,12 @@
```typescript ```typescript
// 创建WantAgent // 创建WantAgent
wantAgent.getWantAgent(wantAgentInfo, (err, data) => { wantAgent.getWantAgent(wantAgentInfo, (err, data) => {
if (err.code === 0) { if (err) {
console.error('[WantAgent]getWantAgent err=' + JSON.stringify(err)); console.error('[WantAgent]getWantAgent err=' + JSON.stringify(err));
} else { return;
console.info('[WantAgent]getWantAgent success');
wantAgentObj = data;
} }
console.info('[WantAgent]getWantAgent success');
wantAgentObj = data;
}); });
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册