|
@@ -76,7 +76,17 @@ public class MusicSheetController extends BaseController {
|
|
|
if (sysUser == null || sysUser.getId() == null) {
|
|
|
return failed("用户信息获取失败");
|
|
|
}
|
|
|
- return succeed(musicSheetService.detail(id, sysUser, ClientEnum.TEACHER));
|
|
|
+
|
|
|
+ MusicSheetDetailVo detail = musicSheetService.detail(id, sysUser, ClientEnum.TEACHER);
|
|
|
+
|
|
|
+ // 设置返回默认值
|
|
|
+ if (StringUtil.isEmpty(detail.getAudioFileUrl())) {
|
|
|
+ detail.setAudioFileUrl("");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(detail.getMusicImg())) {
|
|
|
+ detail.setMusicImg("");
|
|
|
+ }
|
|
|
+ return succeed(detail);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "新增", httpMethod="POST", consumes="application/json", produces="application/json")
|