Переглянути джерело

开发敏感词过滤功能path修改

tags/B.2.6.8_20240116_base
yk 1 рік тому
джерело
коміт
9a85dfb8a2
1 змінених файлів з 3 додано та 3 видалено
  1. +3
    -3
      xueyi-modules/xueyi-nlt/src/main/java/com/xueyi/nlt/nlt/controller/DmIntentController.java

+ 3
- 3
xueyi-modules/xueyi-nlt/src/main/java/com/xueyi/nlt/nlt/controller/DmIntentController.java Переглянути файл

@@ -902,7 +902,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt
@Autowired
private ISensitiveService sensitiveService;

@GetMapping("/create-sensitive-lib")
@GetMapping("/api/create-sensitive-lib")
public AjaxResult addSensitiveBlack(@RequestParam("name") String name, @RequestParam(value = "category" ,required = false) String category, @RequestParam("type") String type){
try {
String res = "";
@@ -921,7 +921,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt
}


@GetMapping("/add-sensitive-word")
@GetMapping("/api/add-sensitive-word")
public AjaxResult addSensitiveWord(@RequestParam("content") String content, @RequestParam("type") String type){
try {
String res = "";
@@ -937,7 +937,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt
}
}

@GetMapping("/check-sensitive-word")
@GetMapping("/api/check-sensitive-word")
public AjaxResult addSensitiveWhite(@RequestParam("content") String content, @RequestParam(value = "useLib", required = false) Integer useLib){
String res = sensitiveService.checkSensitiveWord(content, useLib);
logger.info("check-sensitive-word ,content:{}, res:{}",content, res);


Завантаження…
Відмінити
Зберегти