平台介绍 >> /jscode/app.json项目配置文件(命令行模式)
/jscode/app.json项目配置文件(命令行模式)
{
"db_data_config-desc": "读取数据库数据处理规则",
"db_data_config": {
"db_string_column_type": "varchar,text,longtext,mediumtext,char,date,datetime",
"db_string_column_type-desc": "数据类型返回字符串",
"db_string_null_to_empty": true,
"db_string_null_to_empty-desc": "字符串为null时强制转为空字符串",
"db_int_column_type": "smallint,tinyint,int,bigint",
"db_int_column_type-desc": "数据类型返回数字整型类型",
"db_float_column_type": "float,double,decimal",
"db_float_column_type-desc": "数据类型返回数字浮点类型",
"db_number_null_to_zero": true,
"db_number_null_to_zero-desc": "数据为null时强制转为0",
"db_column_data_is_string": true,
"db_column_data_is_string-desc": "数据库读取数据返回的数据类型,true:全部为string类型,false:为字符串和数字,暂不支持其他类型"
},
"setting": {
"compile_every_time-desc": "是否每次都重新编译代码",
"compile_every_time": true
},
"globalcache": {
"globalcache": "应用内全局缓存",
"gcsecond-desc": "资源回收周期:单位秒",
"gcsecond": 600
},
"cache_redis": {
"cache_redis": "redis配置",
"addr": "127.0.0.1:6379",
"password": "",
"db": 0
},
"timeout-desc": "超时配置,单位:毫秒",
"timeout": {
"async-desc": "异步超时",
"async": 3000,
"crond-desc": "定时任务",
"crond": 2000,
"event-desc": "事件",
"event": 2000,
"init-desc": "初始化",
"init": 2000
},
"throw_err_template": {
"default":"执行异常,错误信息:$$MSG$$",
"method":{"get":"GET错误信息:$$MSG$$","post":"{\"data\":null,\"msg\":\"报错了:$$MSG$$\",\"code\":-1000}"},
"template_desc":"$$MSG$$表示错误信息,$$ERRCODE$$表示错误信息行代码,$$JSCODE$$表示错误代码上下行,错误信息以$$CUSTOM$$开头表示自定义信息,显示$$CUSTOM$$后面的内容"
}
}