Prechádzať zdrojové kódy

支持有声读物下载

guozhaoshun 6 rokov pred
rodič
commit
296360ba57
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      helper/LjFileHelper.js

+ 4 - 4
helper/LjFileHelper.js

@@ -69,17 +69,17 @@ class LjFileHelper
         }//有声读物处理
         else if (filePropObj.fileType == ljConst.VIDEO_TYPE_MP3)
         {
-            //未加密图片本地存储地址
+            //未加密有声读物本地存储地址
             var localFileDir = filePropObj.folderDir + filePropObj.fileName + "." + filePropObj.fileType;
 
-            //读取图片
+            //读取有声读物
             request(fileUrl).pipe(fs.createWriteStream(localFileDir)).on('close', function ()
             {
-                //加密图片存储地址
+                //加密有声读物存储地址
                 var localFileDirNew = filePropObj.folderDir + filePropObj.fileName + "_new." + filePropObj.fileType;
                 logHelper.info("Succeeded to down audio:" + localFileDirNew);
 
-                //加密图片
+                //加密有声读物
                 LjFileHelper.writeEncryptedStream(localFileDir, localFileDirNew);
 
                 logHelper.info("Succeeded to image audio:" + localFileDirNew);