更新
This commit is contained in:
@@ -39,7 +39,11 @@ public class SensitiveWordInitializer implements CommandLineRunner{
|
||||
denySet.add(item.getWord());
|
||||
}
|
||||
});
|
||||
redisService.sAdd(SensitiveRedisContants.SENSITIVE_WORD_ALLOW, allowSet);
|
||||
redisService.sAdd(SensitiveRedisContants.SENSITIVE_WORD_DENY, denySet);
|
||||
if (!allowSet.isEmpty()) {
|
||||
redisService.sAdd(SensitiveRedisContants.SENSITIVE_WORD_ALLOW, allowSet.toArray());
|
||||
}
|
||||
if (!denySet.isEmpty()) {
|
||||
redisService.sAdd(SensitiveRedisContants.SENSITIVE_WORD_DENY, denySet.toArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class CourseController {
|
||||
/**
|
||||
* 删除课程
|
||||
*/
|
||||
@DeleteMapping("/course")
|
||||
@DeleteMapping("/{courseID}")
|
||||
public ResultDomain<Boolean> deleteCourse(@PathVariable("courseID") String courseID) {
|
||||
return courseService.deleteCourse(courseID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user