zhouxianguang 6 years ago
parent
commit
0b9cd7c6c4
6 changed files with 8 additions and 14 deletions
  1. 1 1
      app.js
  2. 1 3
      close_port.js
  3. 0 1
      helper/LjFileHelper.js
  4. 2 1
      helper/LjLogHelper.js
  5. 2 2
      index.html
  6. 2 6
      router/lesson.js

+ 1 - 1
app.js

@@ -16,7 +16,7 @@ app.get('/', function (req, res) {
 })
 })
 
 
 //启动监听
 //启动监听
-app.listen(8089, function ()
+app.listen(9191, function ()
 {
 {
     logHelper.info("winBoxNode starting success");
     logHelper.info("winBoxNode starting success");
 });
 });

+ 1 - 3
close_port.js

@@ -1,7 +1,6 @@
 var cmd=process.platform=='win32'?'netstat -ano':'ps aux';
 var cmd=process.platform=='win32'?'netstat -ano':'ps aux';
 var exec = require('child_process').exec;
 var exec = require('child_process').exec;
-var qqname='qq';
-var port='8089';
+var port='9191';
 
 
 exec(cmd, function(err, stdout, stderr) {
 exec(cmd, function(err, stdout, stderr) {
     if(err){ return console.log(err); }
     if(err){ return console.log(err); }
@@ -17,7 +16,6 @@ exec(cmd, function(err, stdout, stderr) {
                     if(err){
                     if(err){
                         return console.log('释放指定端口失败!!');
                         return console.log('释放指定端口失败!!');
                     }
                     }
-
                     console.log('占用指定端口的程序被成功杀掉!');
                     console.log('占用指定端口的程序被成功杀掉!');
                 });
                 });
             }
             }

+ 0 - 1
helper/LjFileHelper.js

@@ -8,7 +8,6 @@ var apiHelper = require("../helper/LjApiHelper");
 var httpHelper = require("../helper/LjHttpHelper");
 var httpHelper = require("../helper/LjHttpHelper");
 var os = require('os');
 var os = require('os');
 
 
-
 /**
 /**
  * The helper of file
  * The helper of file
  */
  */

+ 2 - 1
helper/LjLogHelper.js

@@ -8,7 +8,8 @@ log4js.configure({
             filename: __dirname.split("winBoxNode")[0]+"/Logs/lingjiao.log",
             filename: __dirname.split("winBoxNode")[0]+"/Logs/lingjiao.log",
             pattern: "_yyyy-MM-dd",
             pattern: "_yyyy-MM-dd",
             alwaysIncludePattern: false,
             alwaysIncludePattern: false,
-            category: 'dateFileLog'
+            category: 'dateFileLog',
+            maxLogSize:104800,
         }
         }
     },
     },
     categories: {
     categories: {

+ 2 - 2
index.html

@@ -6,7 +6,7 @@
     <meta content="MSHTML 6.00.2800.1106" name="GENERATOR">
     <meta content="MSHTML 6.00.2800.1106" name="GENERATOR">
 </head>
 </head>
 
 
-<body>
-    <h1 style="color: red;text-align: center;">欢迎您访问领教云</h1>
+<body style="background-image: url('http://tt-web.api.ai160.com/debug/build/stage/index/assets/img/IndexScene/background.png')">
+    <h1 style="color: red;text-align: center;">欢迎您访问领教云课堂</h1>
 </body>
 </body>
 </html>
 </html>

+ 2 - 6
router/lesson.js

@@ -155,10 +155,6 @@ router.get("/downloadFile", function (req, res, next)
                         }
                         }
                     }
                     }
                 }
                 }
-
-
-
-
             }
             }
             logHelper.info("res_total:" + res_total);
             logHelper.info("res_total:" + res_total);
             /*课件-End*/
             /*课件-End*/
@@ -497,12 +493,12 @@ var addDownload = function (opt)
 
 
         if (retObj.code == 200)
         if (retObj.code == 200)
         {
         {
-            logHelper.info("Succeed to call api[" + opt.path + "]");
+            logHelper.info("Succeed to call api[" + opt.path + "] with lessonId["+opt.lessonId+"]");
             return true;
             return true;
         }
         }
         else
         else
         {
         {
-            logHelper.error("Failed to call api[" + opt.path + "],caused by error[" + retObj + "]");
+            logHelper.error("Failed to call api[" + opt.path + "] with lessonId["+opt.lessonId+"],caused by error[" + retObj + "]");
             return false;
             return false;
         }
         }
     });
     });