删除空格

This commit is contained in:
weiyachao 2023-10-07 11:34:02 +08:00
parent a05df74aba
commit edf0842dcf

View File

@ -28,7 +28,7 @@ public class MusicController {
public Mono<List<SongInfoResponse.ResultSong>> search(String name, public Mono<List<SongInfoResponse.ResultSong>> search(String name,
@RequestParam(required = false, defaultValue = "1") Integer type) { @RequestParam(required = false, defaultValue = "1") Integer type) {
return musicService.searchMusic(name,type); return musicService.searchMusic(name.trim(),type);
} }