|
|
|
<?php
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | OneThink [ WE CAN DO IT JUST THINK IT ]
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.thinkphp.cn>
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 前台配置文件
|
|
|
|
* 所有除开系统级别的前台配置
|
|
|
|
*/
|
|
|
|
return array(
|
|
|
|
/* 数据缓存设置 */
|
|
|
|
'DATA_CACHE_PREFIX' => 'onethink_', // 缓存前缀
|
|
|
|
'DATA_CACHE_TYPE' => 'File', // 数据缓存类型
|
|
|
|
'URL_MODEL' => 3, //URL模式
|
|
|
|
|
|
|
|
'GET_INFO_KEY' => 'wmkjtx_kj213',
|
|
|
|
|
|
|
|
'OA' => array(
|
|
|
|
'testUrl' => 'http://oa.76ba.com',
|
|
|
|
'formalUrl' => 'http://oa.76ba.com',
|
|
|
|
),
|
|
|
|
|
|
|
|
/* 文件上传相关配置 */
|
|
|
|
'DOWNLOAD_UPLOAD' => array(
|
|
|
|
'mimes' => '', //允许上传的文件MiMe类型
|
|
|
|
'maxSize' => 0, //上传的文件大小限制 (0-不做限制)
|
|
|
|
'exts' => 'jpg,gif,png,jpeg,zip,rar,tar,gz,7z,doc,docx,txt,xml,mp4,xlsx', //允许上传的文件后缀
|
|
|
|
'autoSub' => true, //自动子目录保存文件
|
|
|
|
'subName' => array('date', 'Y-m-d'), //子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组
|
|
|
|
'rootPath' => './Uploads/Download/', //保存根路径
|
|
|
|
'savePath' => '', //保存路径
|
|
|
|
'saveName' => array('uniqid', ''), //上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组
|
|
|
|
'saveExt' => '', //文件保存后缀,空则使用原后缀
|
|
|
|
'replace' => false, //存在同名是否覆盖
|
|
|
|
'hash' => true, //是否生成hash编码
|
|
|
|
'callback' => false, //检测文件是否存在回调函数,如果存在返回文件信息数组
|
|
|
|
), //下载模型上传配置(文件上传类配置)
|
|
|
|
|
|
|
|
/* 图片上传相关配置 */
|
|
|
|
'PICTURE_UPLOAD' => array(
|
|
|
|
'mimes' => '', //允许上传的文件MiMe类型
|
|
|
|
'maxSize' => 0, //上传的文件大小限制 (0-不做限制)
|
|
|
|
'exts' => 'jpg,gif,png,jpeg', //允许上传的文件后缀
|
|
|
|
'autoSub' => true, //自动子目录保存文件
|
|
|
|
'subName' => array('date', 'Y-m-d'), //子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组
|
|
|
|
'rootPath' => './Uploads/Picture/', //保存根路径
|
|
|
|
'waterPath' => './Uploads/Water/', //保存根路径
|
|
|
|
'savePath' => '', //保存路径
|
|
|
|
'saveName' => array('uniqid', ''), //上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组
|
|
|
|
'saveExt' => '', //文件保存后缀,空则使用原后缀
|
|
|
|
'replace' => false, //存在同名是否覆盖
|
|
|
|
'hash' => true, //是否生成hash编码
|
|
|
|
'callback' => false, //检测文件是否存在回调函数,如果存在返回文件信息数组
|
|
|
|
), //图片上传相关配置(文件上传类配置)
|
|
|
|
|
|
|
|
'PICTURE_UPLOAD_DRIVER'=>'local',
|
|
|
|
//本地上传文件驱动配置
|
|
|
|
'UPLOAD_LOCAL_CONFIG'=>array(),
|
|
|
|
'UPLOAD_BCS_CONFIG'=>array(
|
|
|
|
'AccessKey'=>'',
|
|
|
|
'SecretKey'=>'',
|
|
|
|
'bucket'=>'',
|
|
|
|
'rename'=>false
|
|
|
|
),
|
|
|
|
'UPLOAD_QINIU_CONFIG'=>array(
|
|
|
|
'accessKey'=>'__ODsglZwwjRJNZHAu7vtcEf-zgIxdQAY-QqVrZD',
|
|
|
|
'secrectKey'=>'Z9-RahGtXhKeTUYy9WCnLbQ98ZuZ_paiaoBjByKv',
|
|
|
|
'bucket'=>'onethinktest',
|
|
|
|
'domain'=>'onethinktest.u.qiniudn.com',
|
|
|
|
'timeout'=>3600,
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
/* 编辑器图片上传相关配置 */
|
|
|
|
'EDITOR_UPLOAD' => array(
|
|
|
|
'mimes' => '', //允许上传的文件MiMe类型
|
|
|
|
'maxSize' => 2*1024*1024, //上传的文件大小限制 (0-不做限制)
|
|
|
|
'exts' => 'jpg,gif,png,jpeg', //允许上传的文件后缀
|
|
|
|
'autoSub' => true, //自动子目录保存文件
|
|
|
|
'subName' => array('date', 'Y-m-d'), //子目录创建方式,[0]-函数名,[1]-参数,多个参数使用数组
|
|
|
|
'rootPath' => './Uploads/Editor/', //保存根路径
|
|
|
|
'savePath' => '', //保存路径
|
|
|
|
'saveName' => array('uniqid', ''), //上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组
|
|
|
|
'saveExt' => '', //文件保存后缀,空则使用原后缀
|
|
|
|
'replace' => false, //存在同名是否覆盖
|
|
|
|
'hash' => true, //是否生成hash编码
|
|
|
|
'callback' => false, //检测文件是否存在回调函数,如果存在返回文件信息数组
|
|
|
|
),
|
|
|
|
|
|
|
|
/* 模板相关配置 */
|
|
|
|
'TMPL_PARSE_STRING' => array(
|
|
|
|
'__STATIC__' => __ROOT__ . '/Public/static',
|
|
|
|
'__ADDONS__' => __ROOT__ . '/Public/' . MODULE_NAME . '/Addons',
|
|
|
|
'__IMG__' => __ROOT__ . '/Public/' . MODULE_NAME . '/images',
|
|
|
|
'__CSS__' => __ROOT__ . '/Public/' . MODULE_NAME . '/css',
|
|
|
|
'__JS__' => __ROOT__ . '/Public/' . MODULE_NAME . '/js',
|
|
|
|
'__FONT__' => __ROOT__ . '/Public/' . MODULE_NAME . '/fonts',
|
|
|
|
),
|
|
|
|
|
|
|
|
/* SESSION 和 COOKIE 配置 */
|
|
|
|
'SESSION_PREFIX' => 'onethink_admin', //session前缀
|
|
|
|
'SESSION_COOKIE_PATH' => '/'.SUBSITE_INDEX,
|
|
|
|
'COOKIE_PREFIX' => 'onethink_admin_', // Cookie前缀 避免冲突
|
|
|
|
'VAR_SESSION_ID' => 'session_id', //修复uploadify插件无法传递session_id的bug
|
|
|
|
|
|
|
|
/* 后台错误页面模板 */
|
|
|
|
'TMPL_ACTION_ERROR' => MODULE_PATH.'View/Public/error.html', // 默认错误跳转对应的模板文件
|
|
|
|
'TMPL_ACTION_SUCCESS' => MODULE_PATH.'View/Public/success.html', // 默认成功跳转对应的模板文件
|
|
|
|
'TMPL_EXCEPTION_FILE' => MODULE_PATH.'View/Public/exception.html',// 异常页面的模板文件
|
|
|
|
/*默认公司名称*/
|
|
|
|
'DEFAULT_COMPANY'=>"海南万盟天下科技有限公司",
|
|
|
|
'OFFICIEL_CHANNEL'=>"江息网络",
|
|
|
|
/*分库的表格*/
|
|
|
|
'SUBSITE_TABLE'=>[
|
|
|
|
"sys_auth_group",
|
|
|
|
"sys_auth_group_access",
|
|
|
|
"sys_ucenter_member",
|
|
|
|
"sys_menu",
|
|
|
|
"sys_member",
|
|
|
|
'sys_auth_rule',
|
|
|
|
"sys_action_log",
|
|
|
|
|
|
|
|
"sub_user_statement",
|
|
|
|
"tab_index_chart",
|
|
|
|
"tab_company_statement",
|
|
|
|
"tab_financial_summary",
|
|
|
|
"tab_settleup_marketorder",
|
|
|
|
"tab_market_altogether",
|
|
|
|
"tab_cmd_tasks",
|
|
|
|
"tab_operation_log",
|
|
|
|
"tab_reward_detail",
|
|
|
|
"tab_reward_record",
|
|
|
|
"tab_new_company_statement_info",
|
|
|
|
"tab_game",
|
|
|
|
"tab_spend",
|
|
|
|
"tab_promote",
|
|
|
|
"tab_promote_company",
|
|
|
|
]
|
|
|
|
);
|