|
@@ -49,7 +49,7 @@ public class NeteaseMessageController extends BaseController {
|
|
|
|
|
|
|
|
@PostMapping("/record")
|
|
@PostMapping("/record")
|
|
|
public Page<NeteaseMessage> record(String toId, Integer ope, Pageable pageable) {
|
|
public Page<NeteaseMessage> record(String toId, Integer ope, Pageable pageable) {
|
|
|
- return neteaseMessageRepo.findAllByToIdAndOpeAndDelOrderByCreatedAtDesc(toId, ope, pageable,false);
|
|
|
|
|
|
|
+ return neteaseMessageRepo.findAllByToIdAndOpeAndDelOrderByCreatedAtDesc(toId, ope, pageable, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/del/{id}")
|
|
@PostMapping("/del/{id}")
|
|
@@ -66,6 +66,9 @@ public class NeteaseMessageController extends BaseController {
|
|
|
|
|
|
|
|
@PostMapping("/sendMsg")
|
|
@PostMapping("/sendMsg")
|
|
|
public NeteaseMessage sendMsg(@RequestBody NeteaseMessage msg) {
|
|
public NeteaseMessage sendMsg(@RequestBody NeteaseMessage msg) {
|
|
|
|
|
+ if (msg.getBody().contains("<") || msg.getBody().contains(">")) {
|
|
|
|
|
+ throw new BusinessException("不可以包含特殊字符。");
|
|
|
|
|
+ }
|
|
|
return neteaseMessageService.sendMessage(msg);
|
|
return neteaseMessageService.sendMessage(msg);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|