You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.8 KiB
80 lines
2.8 KiB
10 months ago
|
<?php
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ]
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Copyright (c) 2016~2020 https://www.tczxkj.com All rights reserved.
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397
|
||
|
// +----------------------------------------------------------------------
|
||
|
|
||
|
|
||
|
return [
|
||
|
// 默认控制器名
|
||
|
'default_controller' => 'Index',
|
||
|
// 默认操作名
|
||
|
'default_action' => 'index',
|
||
|
// 自动搜索控制器
|
||
|
'controller_auto_search' => true,
|
||
|
'session' => [
|
||
|
// SESSION 前缀
|
||
|
'prefix' => 'wap',
|
||
|
// 驱动方式 支持redis memcache memcached
|
||
|
'type' => '',
|
||
|
// 是否自动开启 SESSION
|
||
|
'auto_start' => true,
|
||
|
//有效期
|
||
|
'expire' => 86400,
|
||
|
],
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Cookie设置
|
||
|
// +----------------------------------------------------------------------
|
||
|
'cookie' => [
|
||
|
// cookie 名称前缀
|
||
|
'prefix' => '',
|
||
|
// cookie 保存时间
|
||
|
'expire' => 86400,
|
||
|
// cookie 保存路径
|
||
|
'path' => '/',
|
||
|
// cookie 有效域名
|
||
|
'domain' => '',
|
||
|
// cookie 启用安全传输
|
||
|
'secure' => false,
|
||
|
// httponly设置
|
||
|
'httponly' => '',
|
||
|
// 是否使用 setcookie
|
||
|
'setcookie' => true,
|
||
|
],
|
||
|
'template' => [
|
||
|
// 模板引擎类型 支持 php think 支持扩展
|
||
|
'type' => 'Think',
|
||
|
// 模板路径
|
||
|
'view_path' => APP_PATH . 'wap/view/first/',
|
||
|
// 模板后缀
|
||
|
'view_suffix' => 'html',
|
||
|
// 模板文件名分隔符
|
||
|
'view_depr' => DS,
|
||
|
// 模板引擎普通标签开始标记
|
||
|
'tpl_begin' => '{',
|
||
|
// 模板引擎普通标签结束标记
|
||
|
'tpl_end' => '}',
|
||
|
// 标签库标签开始标记
|
||
|
'taglib_begin' => '{',
|
||
|
// 标签库标签结束标记
|
||
|
'taglib_end' => '}',
|
||
|
],
|
||
|
// 视图输出字符串内容替换
|
||
|
'view_replace_str' => [
|
||
|
'{__PLUG_PATH}' => PUBILC_PATH . 'static/plug/',
|
||
|
'{__STATIC_PATH}' => PUBILC_PATH . 'static/',
|
||
|
'{__PUBLIC_PATH}' => PUBILC_PATH,
|
||
|
'{__WAP_PATH}' => PUBILC_PATH . 'wap/first/',
|
||
|
'{__FRAME_PATH}' => PUBILC_PATH . '/system/frame/',
|
||
|
'{__PC_KS3}' => PUBILC_PATH . 'pc/ks3-js-sdk/'
|
||
|
],
|
||
|
|
||
|
'exception_handle' => \app\wap\controller\WapException::class,
|
||
|
'empty_controller' => 'AuthController',
|
||
|
];
|