Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect call ? #10

Open
imzeali opened this issue Sep 13, 2019 · 0 comments
Open

Incorrect call ? #10

imzeali opened this issue Sep 13, 2019 · 0 comments

Comments

@imzeali
Copy link

imzeali commented Sep 13, 2019

bot-sdk/src/Bot.php

Lines 651 to 662 in 98eb71f

public function addExpectTextResponse($text){
$this->response->addExpectTextResponse($text);
}
/**
* 技能所期待的用户回复,技能将该信息反馈给DuerOS,有助于DuerOS在语音识别以及识别纠错时向该信息提权。
* 槽位类型
* @param string $slot 槽位类型回复表达的槽位名称。
*/
public function addExpectSlotResponse($slot){
$this->response->addExpectTextResponse($slot);
}

这两个函数都调用了 $this->response->addExpectTextResponse($slot);
addExpectSlotResponse 貌似应该调用 $this->response->addExpectSlotResponse才对吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant