shopxo/config/shopxo.php
2020-11-21 16:42:35 +08:00

127 lines
4.7 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
// cdn地址
$cdn_attachment_host = MyFileConfig('common_cdn_attachment_host', '', __MY_PUBLIC_URL__, true);
$cdn_public_host = MyFileConfig('common_cdn_public_host', '', __MY_PUBLIC_URL__, true);
if(substr($cdn_attachment_host, -1) == DS)
{
$cdn_attachment_host = substr($cdn_attachment_host, 0, -1);
}
if(substr($cdn_public_host, -1) != DS)
{
$cdn_public_host .= DS;
}
// 配置信息
return [
// 开发模式
'is_develop' => false,
// 默认编码
'default_charset' => 'utf-8',
// 缓存key列表
// 公共系统配置信息key
'cache_common_my_config_key' => 'cache_common_my_config_data',
// 前台顶部导航,后端菜单更新则删除缓存
'cache_common_home_nav_header_key' => 'cache_common_home_nav_header_data',
// 前台顶部导航
'cache_common_home_nav_footer_key' => 'cache_common_home_nav_footer_data',
// 商品大分类缓存
'cache_goods_category_key' => 'cache_goods_category_key_data',
// 应用数据缓存
'cache_plugins_data_key' => 'cache_plugins_data_key_data_',
// 用户登录左侧数据
'cache_user_login_left_key' => 'cache_user_login_left_data',
// 用户密码找回左侧数据
'cache_user_forgetpwd_left_key' => 'cache_user_forgetpwd_left_data',
// 用户缓存信息
'cache_user_info' => 'cache_user_info_',
// 首页楼层缓存信息
'cache_goods_floor_list_key' => 'cache_goods_floor_list_data',
// 轮播缓存信息
'cache_banner_list_key' => 'cache_banner_list_data_',
// 手机首页导航缓存信息
'cache_app_home_navigation_key' => 'cache_app_home_navigation_data_',
// 手机用户中心导航缓存信息
'cache_app_user_center_navigation_key' => 'cache_app_user_center_navigation_data_',
// 快捷导航缓存信息
'cache_quick_navigation_key' => 'cache_quick_navigation_data_',
// 附件host、最后不要带/斜杠结尾, 数据库图片地址以/static/...开头
'attachment_host' => $cdn_attachment_host,
// css/js引入host地址、以/斜杠结尾
'public_host' => $cdn_public_host,
// 应用商店地址
'website_url' => 'https://shopxo.net/',
'store_url' => 'https://store.shopxo.net/',
'store_payment_url' => 'https://store.shopxo.net/payment.html',
'store_theme_url' => 'https://store.shopxo.net/theme.html',
// 开启U带域名
'url_domain_deploy' => true,
// 支付业务类型,支付插件根据业务类型自动生成支付入口文件
'payment_business_type_all' => [
['name' => 'Order', 'desc' => '订单'],
],
// 不删除的支付方式
'payment_cannot_deleted_list' => [
'DeliveryPayment',
'CashPayment',
],
// 线下支付方式
'under_line_list' => ['CashPayment', 'DeliveryPayment'],
// 小程序平台
'mini_app_type_list' => ['weixin', 'alipay', 'baidu', 'toutiao', 'qq'],
// 坐标需要转换的平台
'coordinate_transformation' => ['alipay', 'weixin', 'toutiao', 'baidu'],
// 货币配置信息
// 符号(默认 ¥)
// 代码(默认 0.0000
// 汇率(默认 RMB
// 名称(默认 人民币)
'currency_symbol' => '¥',
'currency_code' => 'RMB',
'currency_rate' => 0.0000,
'currency_name' => '人民币',
// 验证码最大验证次数,防止暴力破解
'security_prevent_violence_max' => 6,
// 动态表格可加入钩子组
'module_form_hook_group' => ['admin', 'index', 'api'],
];
?>