|  |  | @@ -365,8 +365,8 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | String voiceMouldSm = photoSpeakVideo.getVoiceMouldSm(); | 
		
	
		
			
			|  |  |  | JSONObject jsonObject = JSON.parseObject(voiceMouldSm); | 
		
	
		
			
			|  |  |  | Integer speakTypeStr = jsonObject.getInteger("speakType"); | 
		
	
		
			
			|  |  |  | param.setVoice_style(StringUtils.isBlank(voiceType) ? "default" : EnumSpeakType.getEnum(speakTypeStr).getType()); | 
		
	
		
			
			|  |  |  | Integer speakType = jsonObject.getInteger("speakType"); | 
		
	
		
			
			|  |  |  | param.setVoice_style(StringUtils.isBlank(voiceType) ? "default" : EnumSpeakType.getEnum(speakType).getType()); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | if (EnumVoiceFrom.FROM_MOULD.getCode().equals(voiceFrom)) { | 
		
	
		
			
			|  |  |  | param.setGen_txt(paperwork.replaceAll(str, "[*]")); | 
		
	
	
		
			
				|  |  | @@ -421,11 +421,11 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { | 
		
	
		
			
			|  |  |  | return new AsyncResult<>(0); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | } catch (Exception e) { | 
		
	
		
			
			|  |  |  | e.printStackTrace(); | 
		
	
		
			
			|  |  |  | if (flag) { | 
		
	
		
			
			|  |  |  | //如果生成视频失败了,就把创建视频积分加回去 | 
		
	
		
			
			|  |  |  | userCreateVideoNumService.addOrSubtractNumberOfTimes(2, videoNum, useCredit, videoTime); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | e.printStackTrace(); | 
		
	
		
			
			|  |  |  | videoUpd.setVideoStatus(EnumVideoStatus.fail.getCode()); | 
		
	
		
			
			|  |  |  | videoUpd.setVideoMsg("请求异常"); | 
		
	
		
			
			|  |  |  | this.saveOrUpdate(videoUpd); | 
		
	
	
		
			
				|  |  | 
 |