1
0

first commit

This commit is contained in:
2020-08-06 14:58:51 +08:00
commit 17096657dc
780 changed files with 92857 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<?php
// +------------------------------------------------+
// |http://www.cjango.com |
// +------------------------------------------------+
// | 修复BUG不是一朝一夕的事情等我喝醉了再说吧 |
// +------------------------------------------------+
// | Author: 小陈叔叔 <Jason.Chen> |
// +------------------------------------------------+
return [
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
'log' => [
'type' => 'file',
'path' => LOG_PATH . 'mobile/',
'time_format' => ' c ',
'file_size' => 2097152,
],
// +----------------------------------------------------------------------
// | 模板设置
// +----------------------------------------------------------------------
'template' => [
'tpl_cache' => false,
'strip_space' => false,
'taglib_pre_load' => '',
'cache_path' => TEMP_PATH . 'mobile/',
],
'view_replace_str' => [
'__SELF__' => __SELF__,
'__STATIC__' => '/static/mobile',
'__JS__' => '/static/mobile/js',
'__CSS__' => '/static/mobile/css',
'__IMG__' => '/static/mobile/img',
'__EDIT__' => '/static/mobile/edit',
],
'upload' => [
'mimes' => [], // 允许上传的文件MiMe类型
'maxSize' => 0, // 上传的文件大小限制 (0-不做限制)
'exts' => [], // 允许上传的文件后缀
'autoSub' => true, // 自动子目录保存文件
'subName' => ['date', 'Y/m/d'], // 子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组
'rootPath' => './uploads/', // 保存根路径
'savePath' => '', // 保存路径
'saveName' => ['uniqid', ''], // 上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组
'saveExt' => '', // 文件保存后缀,空则使用原后缀
'replace' => false, // 存在同名是否覆盖
'hash' => true, // 是否生成hash编码
'callback' => true, // 检测文件是否存在回调,如果存在返回文件信息数组
'driver' => 'local', // 文件上传驱动
'driverConfig' => [], // 上传驱动配置
],
];