|
@@ -29,17 +29,50 @@ public class KTDownload {
|
|
|
@Test
|
|
|
public void testExcel() throws Exception {
|
|
|
|
|
|
+
|
|
|
+ //explain_gif
|
|
|
+// List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetExplainGifList(); //要修改
|
|
|
+ //explain_mp3
|
|
|
+ // List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetExplainMp3List(); //要修改
|
|
|
+ //image
|
|
|
+ // List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetImageList(); //要修改
|
|
|
+ //image_ydt
|
|
|
+ // List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetImageYdtList(); //要修改
|
|
|
+ //issuemp3
|
|
|
+ // List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetIssuemp3List(); //要修改
|
|
|
+ //answermp3
|
|
|
+ // List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetAnswermp3List(); //要修改
|
|
|
+ //explainjsmp3
|
|
|
List<QuestionInfoKtGet> list = questionInfoGetService.selectQuestionInfoKtGetExplainjsmp3List(); //要修改
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
QuestionInfoKtGet questionInfoKtGet = list.get(i);
|
|
|
+// String mediaUrl = questionInfoKtGet.getExplainGif(); //要修改
|
|
|
+ // String mediaUrl = questionInfoKtGet.getExplainMp3(); //要修改
|
|
|
+ // String mediaUrl = questionInfoKtGet.getImage(); //要修改
|
|
|
+ // String mediaUrl = questionInfoKtGet.getImageYdt(); //要修改
|
|
|
+ // String mediaUrl = questionInfoKtGet.getIssuemp3(); //要修改
|
|
|
+ // String mediaUrl = questionInfoKtGet.getAnswermp3(); //要修改
|
|
|
String mediaUrl = questionInfoKtGet.getExplainjsmp3(); //要修改
|
|
|
+
|
|
|
+
|
|
|
int index = mediaUrl.lastIndexOf("/");
|
|
|
String fileName = mediaUrl.substring(index + 1);
|
|
|
System.out.println(mediaUrl + "," + fileName);
|
|
|
- Thread.sleep(256);
|
|
|
+ Thread.sleep(200);
|
|
|
|
|
|
try {
|
|
|
- downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt\\explain_js_mp3"); //要修改
|
|
|
+// downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\explain_gif"); //要修改
|
|
|
+// downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\explain_mp3"); //要修改
|
|
|
+ // downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\image"); //要修改
|
|
|
+ // downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\image_ydt"); //要修改
|
|
|
+ // downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\issuemp3"); //要修改
|
|
|
+ // downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\answer_mp3"); //要修改
|
|
|
+ downLoadFromUrl(mediaUrl, fileName, "G:\\中正\\题库图\\kt20220422\\explain_js_mp3"); //要修改
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|