2018-12-29 13:13:09 +08:00
|
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
|
|
|
|
// +----------------------------------------------------------------------
|
2021-03-16 10:34:52 +08:00
|
|
|
|
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
|
2018-12-29 13:13:09 +08:00
|
|
|
|
// +----------------------------------------------------------------------
|
2021-03-16 10:34:52 +08:00
|
|
|
|
// | Licensed ( https://opensource.org/licenses/mit-license.php )
|
2018-12-29 13:13:09 +08:00
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Author: Devil
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | 应用设置
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
2020-09-14 18:53:42 +08:00
|
|
|
|
// cdn地址
|
2020-11-14 00:55:18 +08:00
|
|
|
|
$cdn_attachment_host = MyFileConfig('common_cdn_attachment_host', '', __MY_PUBLIC_URL__, true);
|
|
|
|
|
$cdn_public_host = MyFileConfig('common_cdn_public_host', '', __MY_PUBLIC_URL__, true);
|
2020-09-14 18:53:42 +08:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 配置信息
|
2018-12-29 13:13:09 +08:00
|
|
|
|
return [
|
2019-02-09 09:15:23 +08:00
|
|
|
|
// 开发模式
|
2021-05-27 10:30:20 +08:00
|
|
|
|
'is_develop' => false,
|
2019-02-09 09:15:23 +08:00
|
|
|
|
|
2018-12-29 13:13:09 +08:00
|
|
|
|
// 默认编码
|
|
|
|
|
'default_charset' => 'utf-8',
|
|
|
|
|
|
2021-07-18 23:42:10 +08:00
|
|
|
|
// 后端缓存key列表
|
|
|
|
|
// 权限缓存存储key
|
|
|
|
|
'cache_admin_power_key' => 'cache_admin_power_',
|
|
|
|
|
|
|
|
|
|
// 菜单列表
|
|
|
|
|
'cache_admin_left_menu_key' => 'cache_admin_left_menu_',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 公共缓存key列表
|
2018-12-29 13:13:09 +08:00
|
|
|
|
// 公共系统配置信息key
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_common_my_config_key' => 'cache_common_my_config_data',
|
2018-12-29 13:13:09 +08:00
|
|
|
|
|
|
|
|
|
// 前台顶部导航,后端菜单更新则删除缓存
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_common_home_nav_header_key' => 'cache_common_home_nav_header_data',
|
2018-12-29 13:13:09 +08:00
|
|
|
|
|
|
|
|
|
// 前台顶部导航
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_common_home_nav_footer_key' => 'cache_common_home_nav_footer_data',
|
2018-12-29 13:13:09 +08:00
|
|
|
|
|
2019-03-30 01:51:19 +08:00
|
|
|
|
// 商品大分类缓存
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_goods_category_key' => 'cache_goods_category_key_data',
|
2019-03-30 01:51:19 +08:00
|
|
|
|
|
|
|
|
|
// 应用数据缓存
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_plugins_data_key' => 'cache_plugins_data_key_data_',
|
2019-03-30 01:51:19 +08:00
|
|
|
|
|
2019-05-17 17:47:47 +08:00
|
|
|
|
// 用户登录左侧数据
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_user_login_left_key' => 'cache_user_login_left_data',
|
2019-05-17 17:47:47 +08:00
|
|
|
|
|
|
|
|
|
// 用户密码找回左侧数据
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_user_forgetpwd_left_key' => 'cache_user_forgetpwd_left_data',
|
2019-05-17 17:47:47 +08:00
|
|
|
|
|
2019-06-29 15:11:53 +08:00
|
|
|
|
// 用户缓存信息
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'cache_user_info' => 'cache_user_info_',
|
2019-06-29 15:11:53 +08:00
|
|
|
|
|
2020-04-03 16:28:01 +08:00
|
|
|
|
// 首页楼层缓存信息
|
|
|
|
|
'cache_goods_floor_list_key' => 'cache_goods_floor_list_data',
|
|
|
|
|
|
|
|
|
|
// 轮播缓存信息
|
|
|
|
|
'cache_banner_list_key' => 'cache_banner_list_data_',
|
|
|
|
|
|
2020-09-11 18:06:09 +08:00
|
|
|
|
// 手机首页导航缓存信息
|
|
|
|
|
'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_',
|
2020-04-03 16:28:01 +08:00
|
|
|
|
|
2020-12-29 11:52:23 +08:00
|
|
|
|
// 地区所有数据缓存、1~3级
|
|
|
|
|
'cache_region_all_key' => 'cache_region_all_data',
|
|
|
|
|
|
2021-07-23 15:58:46 +08:00
|
|
|
|
// 搜索热门关键字
|
|
|
|
|
'cache_search_keywords_key' => 'cache_search_keywords_data',
|
|
|
|
|
|
|
|
|
|
// 首页展示的文章列表数据
|
|
|
|
|
'cache_home_article_list_key' => 'cache_home_article_list_data',
|
|
|
|
|
|
|
|
|
|
// 首页展示的友情链接列表数据
|
|
|
|
|
'cache_home_link_list_key' => 'cache_home_link_list_data',
|
|
|
|
|
|
2020-08-23 20:42:49 +08:00
|
|
|
|
// 附件host、最后不要带/斜杠结尾, 数据库图片地址以/static/...开头
|
2020-09-14 18:53:42 +08:00
|
|
|
|
'attachment_host' => $cdn_attachment_host,
|
2018-12-29 13:13:09 +08:00
|
|
|
|
|
2020-09-14 18:53:42 +08:00
|
|
|
|
// css/js引入host地址、以/斜杠结尾
|
|
|
|
|
'public_host' => $cdn_public_host,
|
2020-08-24 23:39:14 +08:00
|
|
|
|
|
2021-07-28 00:55:51 +08:00
|
|
|
|
|
|
|
|
|
// 应用商店基础地址
|
2020-11-21 16:42:35 +08:00
|
|
|
|
'website_url' => 'https://shopxo.net/',
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'store_url' => 'https://store.shopxo.net/',
|
2021-02-23 12:16:31 +08:00
|
|
|
|
'store_payment_url' => 'https://store.shopxo.net/',
|
|
|
|
|
'store_theme_url' => 'https://store.shopxo.net/',
|
2021-07-28 00:55:51 +08:00
|
|
|
|
'store_regster_url' => 'https://store.shopxo.net/regster.html',
|
|
|
|
|
|
|
|
|
|
// 插件在线下载地址
|
2021-02-28 15:31:18 +08:00
|
|
|
|
'store_download_url' => 'https://store.shopxo.net/index.php?s=store-package-onine.html',
|
2019-06-13 17:10:36 +08:00
|
|
|
|
|
2021-07-28 00:55:51 +08:00
|
|
|
|
// 远程系统更新接口
|
|
|
|
|
'store_system_upgrade_url' => 'https://store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=systemsupgradeurl',
|
|
|
|
|
|
|
|
|
|
// 远程插件更新接口
|
|
|
|
|
'store_plugins_upgrade_url' => 'https://store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeurl',
|
|
|
|
|
|
|
|
|
|
// 远程信息接口
|
|
|
|
|
'store_site_info_url' => 'https://store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=siteinfo',
|
|
|
|
|
|
|
|
|
|
// 远程检查更新接口
|
|
|
|
|
'store_inspect_upgrade_url' => 'https://store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=inspectupgrade',
|
|
|
|
|
|
|
|
|
|
// 远程插件安全合法校验接口
|
|
|
|
|
'store_plugins_legal_check_url' => 'https://store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginslegalcheck',
|
|
|
|
|
|
|
|
|
|
// 远程插件更新信息接口
|
|
|
|
|
'store_plugins_upgrade_info_url' => 'https://store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeinfo',
|
|
|
|
|
|
2018-12-29 13:13:09 +08:00
|
|
|
|
|
|
|
|
|
// 支付业务类型,支付插件根据业务类型自动生成支付入口文件
|
|
|
|
|
'payment_business_type_all' => [
|
|
|
|
|
['name' => 'Order', 'desc' => '订单'],
|
|
|
|
|
],
|
|
|
|
|
|
2019-01-16 15:31:16 +08:00
|
|
|
|
// 不删除的支付方式
|
|
|
|
|
'payment_cannot_deleted_list' => [
|
|
|
|
|
'DeliveryPayment',
|
|
|
|
|
'CashPayment',
|
|
|
|
|
],
|
|
|
|
|
|
2018-12-29 13:13:09 +08:00
|
|
|
|
// 线下支付方式
|
|
|
|
|
'under_line_list' => ['CashPayment', 'DeliveryPayment'],
|
2019-07-01 01:07:07 +08:00
|
|
|
|
|
|
|
|
|
// 小程序平台
|
2020-01-16 15:01:30 +08:00
|
|
|
|
'mini_app_type_list' => ['weixin', 'alipay', 'baidu', 'toutiao', 'qq'],
|
2020-01-29 21:09:47 +08:00
|
|
|
|
|
|
|
|
|
// 坐标需要转换的平台
|
|
|
|
|
'coordinate_transformation' => ['alipay', 'weixin', 'toutiao', 'baidu'],
|
2020-02-04 17:18:14 +08:00
|
|
|
|
|
2020-09-17 22:22:37 +08:00
|
|
|
|
// 货币配置信息
|
|
|
|
|
// 符号(默认 ¥)
|
|
|
|
|
// 代码(默认 0.0000)
|
|
|
|
|
// 汇率(默认 RMB)
|
|
|
|
|
// 名称(默认 人民币)
|
|
|
|
|
'currency_symbol' => '¥',
|
|
|
|
|
'currency_code' => 'RMB',
|
|
|
|
|
'currency_rate' => 0.0000,
|
|
|
|
|
'currency_name' => '人民币',
|
2020-06-03 13:38:13 +08:00
|
|
|
|
|
|
|
|
|
// 验证码最大验证次数,防止暴力破解
|
|
|
|
|
'security_prevent_violence_max' => 6,
|
2020-06-28 22:50:10 +08:00
|
|
|
|
|
|
|
|
|
// 动态表格可加入钩子组
|
|
|
|
|
'module_form_hook_group' => ['admin', 'index', 'api'],
|
2018-12-29 13:13:09 +08:00
|
|
|
|
];
|
|
|
|
|
?>
|