增加退出聆听功能
This commit is contained in:
parent
2edfb099d6
commit
942e911f02
@ -16,6 +16,8 @@ public enum AskTypeEnum {
|
||||
TIME(6, "询问时间"),
|
||||
POEM(7, "古诗"),
|
||||
|
||||
EXIT(20, "退出聆听"),
|
||||
|
||||
UPDATE(100, "固件升级"),
|
||||
BOX_ON_LINE(101, "Box配网成功"),
|
||||
BOX_OFF_LINE(102, "Box离线"),
|
||||
|
||||
@ -535,6 +535,13 @@ public class BaseWebSocketProcess {
|
||||
}
|
||||
|
||||
});
|
||||
}else if(action.getSystemTalkAnswerConfigEntity().getAnswerType().equals(AskTypeEnum.EXIT.getCode())){
|
||||
return sendMessage(action,
|
||||
baseSession ,
|
||||
action.getSystemTalkAnswerConfigEntity().getAnswerValue(),
|
||||
AskTypeEnum.EXIT.getCode()).flatMap(m -> {
|
||||
return Mono.empty();
|
||||
});
|
||||
}else{
|
||||
return toQianWen(action, baseSession, action.getSystemTalkAnswerConfigEntity().getAnswerType()).flatMap(vo ->{
|
||||
//千问只调一次
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user