系统、网站、API站点,简单高效开发

/jscode/app.json 项目配置文件(WEB模式)

{ "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:为字符串和数字,暂不支持其他类型" }, "cros-desc": "跨域配置", "cros": { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": "true", "Access-Control-Allow-Methods": "*", "Access-Control-Allow-Headers": "Content-Type,X-Requested-With,*", "Access-Control-Expose-Headers": "*" }, "static-desc": "静态本地目录", "static": [ { "alias": "/res/", "path": "$JSCODEPATH$/static/" }, { "alias": "/admin/", "path": "$JSCODEPATH$/admin/" } ], "setting": { "debuginfo-desc": "如果返回是JSON结果,数据加入debugInfo信息", "debuginfo": false, "template-desc": "HTML解析模板,左边有右边标识, 默认为{{ 和 }}", "templatedelims_left": "", "templatedelims_right": "", "urlnotfind_html": "未找到可用的地址,请返回首页" }, "session": { "timeoutsecond-desc": "session失效时间,单位秒", "timeoutsecond": 36000, "gcsecond-desc": "资源回收周期:单位秒", "gcsecond": 600 }, "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, "request-desc": "请求", "request": 20000 }, "throw_err_template": { "default":"执行异常,错误信息:$$MSG$$", "method":{"get":"GET错误信息:$$MSG$$","post":"{\"data\":null,\"msg\":\"报错了:$$MSG$$\",\"code\":-1000}"}, "template_desc":"$$MSG$$表示错误信息,$$ERRCODE$$表示错误信息行代码,$$JSCODE$$表示错误代码上下行,错误信息以$$CUSTOM$$开头表示自定义信息,显示$$CUSTOM$$后面的内容" } }

备案号:闽ICP备20003806号     厦门市湖里区陈朝能网络技术工作室