MaiXinRong 6 years ago
parent
commit
d300b4fcea
1 changed files with 1 additions and 29 deletions
  1. 1 29
      config/config.test.js

+ 1 - 29
config/config.test.js

@@ -21,15 +21,13 @@ module.exports = appInfo => {
             // 密码
             password: 'root',
             // 数据库名
-            database: 'calc_test',
+            database: 'calculation',
         },
         // 是否加载到 app 上,默认开启
         app: true,
         // 是否加载到 agent 上,默认关闭
         agent: false,
     };
-    // 表名前缀
-    config.tablePrefix = 'zh_';
 
     // redis设置
     config.redis = {
@@ -43,37 +41,11 @@ module.exports = appInfo => {
         version: '1.0.0',
     };
 
-    // session配置
-    config.session = {
-        key: 'ZHC_SESS',
-        maxAge: 8 * 3600 * 1000, // 8小时
-        httpOnly: true,
-        encrypt: true,
-    };
-
-    // geetest验证码key
-    config.geetest = {
-        id: '23c50f6711966f744c93a70167c8e0a4',
-        key: '9b67989994f9def437ea68bb495f0162',
-    };
-
     // 前端验证
     config.jsValidator = {
         client: {},
         app: true,
     };
-
-    // 上传设置
-    config.multipart = {
-        whitelist: ['.json', '.txt',
-            '.xls', '.xlsx',
-            '.doc', '.docx',
-            '.pdf',
-            '.png', '.jpg', '.jpeg', '.gif', '.bmp',
-            '.zip', '.rar', '.7z'],
-        fileSize: '30mb',
-    };
-
     // 是否压缩替换前端js
     config.min = false;