Merge branch 'feature-BOX一期' of http://47.99.132.106:10081/wulin/qiuguo-iot into feature-BOX一期
This commit is contained in:
commit
c05ca62df8
@ -49,6 +49,7 @@ public class MusicService {
|
||||
if (ObjectUtils.isEmpty(keyword)) {
|
||||
keyword = "追梦赤子心";
|
||||
}
|
||||
keyword = keyword.replaceAll("^[^\\u4e00-\\u9fa5\\d]+|[^\\u4e00-\\u9fa5\\d]+$", "");
|
||||
WebClient webClient = WebClient.builder()
|
||||
.defaultHeader("Content-Type", "application/json; charset=utf-8")
|
||||
.defaultHeader("User-Agent","PostmanRuntime/7.29.0")
|
||||
|
||||
@ -27,8 +27,7 @@ public class MusicController {
|
||||
@GetMapping("/search")
|
||||
public Mono<List<SongInfoResponse.ResultSong>> search(String name,
|
||||
@RequestParam(required = false, defaultValue = "1") Integer type) {
|
||||
|
||||
return musicService.searchMusic(name.replaceAll("^[^\\u4e00-\\u9fa5\\d]+|[^\\u4e00-\\u9fa5\\d]+$", ""),type);
|
||||
return musicService.searchMusic(name,type);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user