|
@@ -71,19 +71,17 @@ public class VoiceMaterialController extends BaseController { |
|
|
if(record == null)record = new VoiceMaterial(); |
|
|
if(record == null)record = new VoiceMaterial(); |
|
|
record.setSendType(EnumMouldSendType.build.getCode()); |
|
|
record.setSendType(EnumMouldSendType.build.getCode()); |
|
|
record.setUserId(getMemberId()); |
|
|
record.setUserId(getMemberId()); |
|
|
if(StringUtils.isBlank(record.getMaterial())){ |
|
|
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"素材为空"); |
|
|
|
|
|
|
|
|
if(StringUtils.isBlank(record.getVideoId())){ |
|
|
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"音频为空"); |
|
|
} |
|
|
} |
|
|
//todo 掉第三方接口判断声音是否符合规范 |
|
|
//todo 掉第三方接口判断声音是否符合规范 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(record.getTitle() == null){ |
|
|
if(record.getTitle() == null){ |
|
|
record.setTitle("用户自建"); |
|
|
record.setTitle("用户自建"); |
|
|
} |
|
|
} |
|
|
record.setPrice(0); |
|
|
record.setPrice(0); |
|
|
record.setSalePrice(0); |
|
|
record.setSalePrice(0); |
|
|
voiceMaterialService.saveOrUpdate(record); |
|
|
|
|
|
return new ResultData(); |
|
|
|
|
|
|
|
|
return voiceMaterialService.saveOrUpdate(record); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("根据id查询接口") |
|
|
@ApiOperation("根据id查询接口") |
|
|