| 
															
																@@ -21,15 +21,13 @@ module.exports = appInfo => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             // 密码 
															 | 
															
															 | 
															
																             // 密码 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             password: 'root', 
															 | 
															
															 | 
															
																             password: 'root', 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             // 数据库名 
															 | 
															
															 | 
															
																             // 数据库名 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            database: 'calc_test', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            database: 'calculation', 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         }, 
															 | 
															
															 | 
															
																         }, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         // 是否加载到 app 上,默认开启 
															 | 
															
															 | 
															
																         // 是否加载到 app 上,默认开启 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         app: true, 
															 | 
															
															 | 
															
																         app: true, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         // 是否加载到 agent 上,默认关闭 
															 | 
															
															 | 
															
																         // 是否加载到 agent 上,默认关闭 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         agent: false, 
															 | 
															
															 | 
															
																         agent: false, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     }; 
															 | 
															
															 | 
															
																     }; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    // 表名前缀 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    config.tablePrefix = 'zh_'; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																     // redis设置 
															 | 
															
															 | 
															
																     // redis设置 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     config.redis = { 
															 | 
															
															 | 
															
																     config.redis = { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -43,37 +41,11 @@ module.exports = appInfo => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         version: '1.0.0', 
															 | 
															
															 | 
															
																         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 = { 
															 | 
															
															 | 
															
																     config.jsValidator = { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         client: {}, 
															 | 
															
															 | 
															
																         client: {}, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         app: true, 
															 | 
															
															 | 
															
																         app: true, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     }; 
															 | 
															
															 | 
															
																     }; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																- 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    // 上传设置 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    config.multipart = { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        whitelist: ['.json', '.txt', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            '.xls', '.xlsx', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            '.doc', '.docx', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            '.pdf', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            '.png', '.jpg', '.jpeg', '.gif', '.bmp', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            '.zip', '.rar', '.7z'], 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        fileSize: '30mb', 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    }; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																- 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     // 是否压缩替换前端js 
															 | 
															
															 | 
															
																     // 是否压缩替换前端js 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     config.min = false; 
															 | 
															
															 | 
															
																     config.min = false; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 |