Browse Source

音频bug修改

weiwenhai 7 years ago
parent
commit
784ee0d7f6

+ 2 - 2
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/QuestionAudioServiceImpl.java

@@ -148,14 +148,14 @@ public class QuestionAudioServiceImpl implements QuestionAudioService{
 	    while(m.find()) {
 	    while(m.find()) {
 		  String name = m.group(1);
 		  String name = m.group(1);
 		  if(name.substring(0, name.indexOf("_")+1).contains("2")){
 		  if(name.substring(0, name.indexOf("_")+1).contains("2")){
-			  buffer.append(name.substring(0,name.lastIndexOf("_")));
+			  buffer.append(name.substring(0,name.lastIndexOf("_")+1));
 			  buffer.append(i);
 			  buffer.append(i);
 			  buffer.append(name.substring(name.lastIndexOf(".")));
 			  buffer.append(name.substring(name.lastIndexOf(".")));
 			  buffer.append("@temp");
 			  buffer.append("@temp");
 		      map.put(m.group(1), buffer.toString());
 		      map.put(m.group(1), buffer.toString());
 		      i++;
 		      i++;
 		  }else {
 		  }else {
-			  buffer.append(name.substring(0,name.lastIndexOf("_")));
+			  buffer.append(name.substring(0,name.lastIndexOf("_")+1));
 			  buffer.append(y);
 			  buffer.append(y);
 			  buffer.append(name.substring(name.lastIndexOf(".")));
 			  buffer.append(name.substring(name.lastIndexOf(".")));
 			  buffer.append("@temp");
 			  buffer.append("@temp");