增加清除阿里云token功能
This commit is contained in:
parent
5978e32094
commit
2806f817e6
@ -71,10 +71,16 @@ public class WebsocketController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/init/sysTalkAnswer")
|
@GetMapping("/init/sysTalkAnswer")
|
||||||
public Mono<String> sysTalkAnswer() {
|
public Mono<String> sysTalkAnswer(@RequestParam Integer type) {
|
||||||
|
if(type == 0){
|
||||||
|
systemTalkAnswerConfigService.initGroup();
|
||||||
|
return Mono.just("重新读取指令完成");
|
||||||
|
}else{
|
||||||
|
return reactiveStringRedisTemplate.opsForValue().delete(RedisConstans.ALI_TTS_TOKEN).flatMap(m -> {
|
||||||
|
return Mono.just("Redis key已清除:" + RedisConstans.ALI_TTS_TOKEN);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
systemTalkAnswerConfigService.initGroup();
|
|
||||||
return Mono.just("重新读取指令完成");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/test/nlp")
|
@GetMapping("/test/nlp")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user