|
|
@@ -69,7 +69,7 @@ public class VoiceMaterialController extends BaseController { |
|
|
|
public ResultData save(@RequestBody VoiceMaterial record) { |
|
|
|
logger.debug("[" + getIpAddr() + "] VoiceMaterialController::save"); |
|
|
|
if(record == null)record = new VoiceMaterial(); |
|
|
|
record.setSendType(EnumMouldSendType.build.getCode()); |
|
|
|
// record.setSendType(EnumMouldSendType.build.getCode()); |
|
|
|
record.setUserId(getMemberId()); |
|
|
|
if(StringUtils.isBlank(record.getVideoId())){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"音频为空"); |
|
|
@@ -77,6 +77,9 @@ public class VoiceMaterialController extends BaseController { |
|
|
|
if(record.getTitle() == null){ |
|
|
|
record.setTitle("用户自建"); |
|
|
|
} |
|
|
|
if(record.getSendType() == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"上传音频类型不能为空"); |
|
|
|
} |
|
|
|
record.setPrice(0); |
|
|
|
record.setSalePrice(0); |
|
|
|
record.setStatus(EnumaMouldPatchStatus.put_on.getCode()); |
|
|
|