Commit 9dc7e4de1e52b1a8644eef21360e65ca30bf1439
1 parent
d66ff6586d
Exists in
master
update
Showing 1 changed file with 4 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java
View file @
9dc7e4d
| ... | ... | @@ -18,6 +18,7 @@ |
| 18 | 18 | import org.springframework.http.codec.multipart.Part; |
| 19 | 19 | import org.springframework.util.StringUtils; |
| 20 | 20 | import org.springframework.web.bind.annotation.*; |
| 21 | +import org.springframework.web.context.annotation.RequestScope; | |
| 21 | 22 | import org.springframework.web.multipart.MultipartFile; |
| 22 | 23 | |
| 23 | 24 | import javax.servlet.http.HttpServletResponse; |
| ... | ... | @@ -275,7 +276,9 @@ |
| 275 | 276 | * @return true 可以使用,false已经存在 |
| 276 | 277 | */ |
| 277 | 278 | @GetMapping("getTitleYn") |
| 278 | - public BaseResponse getTitleYn(@RequestParam(required = false) Integer aid, Integer iid,String title){ | |
| 279 | + public BaseResponse getTitleYn(@RequestParam(required = false) Integer aid, | |
| 280 | + @RequestParam(required = true) Integer iid, | |
| 281 | + @RequestParam(required = true) String title){//加@RequestParam 能解决乱码问题 | |
| 279 | 282 | BaseResponse baseResponse=new BaseResponse(); |
| 280 | 283 | try { |
| 281 | 284 | QueryWrapper<LymsArticle> queryWrapper=new QueryWrapper<>(); |