211 lines
8.5 KiB
PHP
Executable File
211 lines
8.5 KiB
PHP
Executable File
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||
// +----------------------------------------------------------------------
|
||
// | Author: Devil
|
||
// +----------------------------------------------------------------------
|
||
|
||
/**
|
||
* 模块配置信息
|
||
* @author Devil
|
||
* @blog http://gong.gg/
|
||
* @version 0.0.1
|
||
* @datetime 2016-12-01T21:51:08+0800
|
||
*/
|
||
|
||
return [
|
||
// 默认输出类型
|
||
'default_return_type' => 'json',
|
||
// 默认AJAX 数据返回格式,可选json xml ...
|
||
'default_ajax_return' => 'json',
|
||
// 默认JSONP格式返回的处理方法
|
||
'default_jsonp_handler' => 'jsonpReturn',
|
||
|
||
// 百度编辑器配置信息 ueditor
|
||
'ueditor_config' => [
|
||
// 上传图片配置项
|
||
// 执行上传图片的action名称
|
||
'imageActionName' => 'uploadimage',
|
||
|
||
// 提交的图片表单名称
|
||
'imageFieldName' => 'upfile',
|
||
|
||
// 上传大小限制,单位B
|
||
'imageMaxSize' => MyC('home_max_limit_image', 2048000, true),
|
||
|
||
// 上传图片格式显示
|
||
'imageAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],
|
||
|
||
// 是否压缩图片,默认是true
|
||
'imageCompressEnable' => true,
|
||
|
||
// 图片压缩最长边限制
|
||
'imageCompressBorder' => 1600,
|
||
|
||
// 插入的图片浮动方式
|
||
'imageInsertAlign' => 'none',
|
||
|
||
// 图片访问路径前缀
|
||
'imageUrlPrefix' => '',
|
||
|
||
// 上传保存路径,可以自定义保存路径和文件名格式
|
||
'imagePathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
|
||
|
||
|
||
// 涂鸦图片上传配置项
|
||
// 执行上传涂鸦的action名称
|
||
'scrawlActionName' => 'uploadscrawl',
|
||
|
||
// 提交的图片表单名称
|
||
'scrawlFieldName' => 'upfile',
|
||
|
||
// 上传保存路径,可以自定义保存路径和文件名格式
|
||
'scrawlPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
|
||
|
||
// 上传大小限制,单位B
|
||
'scrawlMaxSize' => MyC('home_max_limit_image', 2048000, true),
|
||
|
||
// 上传图片格式显示
|
||
'scrawlAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],
|
||
|
||
// 图片访问路径前缀
|
||
'scrawlUrlPrefix' => '',
|
||
|
||
// 插入的图片浮动方式
|
||
'scrawlInsertAlign' => 'none',
|
||
|
||
|
||
// 截图工具上传
|
||
// 执行上传截图的action名称
|
||
'snapscreenActionName' => 'uploadimage',
|
||
|
||
// 上传保存路径,可以自定义保存路径和文件名格式
|
||
'snapscreenPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
|
||
|
||
// 图片访问路径前缀
|
||
'snapscreenUrlPrefix' => '',
|
||
|
||
// 插入的图片浮动方式
|
||
'snapscreenInsertAlign' => 'none',
|
||
|
||
|
||
// 抓取远程图片配置
|
||
// 执行抓取远程图片的action名称
|
||
'catcherLocalDomain' => ['127.0.0.1', 'localhost', 'img.baidu.com'],
|
||
|
||
// 执行抓取远程图片的action名称
|
||
'catcherActionName' => 'catchimage',
|
||
|
||
// 提交的图片列表表单名称
|
||
'catcherFieldName' => 'source',
|
||
|
||
// 上传保存路径,可以自定义保存路径和文件名格式
|
||
'catcherPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
|
||
|