shopxo/config/shopxo.php

186 lines
7.3 KiB
PHP
Raw Normal View History

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
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
// 站点域名地址
$domain_url = MyFileConfig('common_domain_host', '', __MY_DOMAIN__, true);
if(substr($domain_url, -1) != DS)
{
$domain_url .= DS;
}
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;
}
2021-10-24 11:36:22 +08:00
// 连接商店是否采用https
$store_http = (MyFileConfig('common_is_https_connect_store') == 1) ? 'https://' : 'http://';
2020-09-14 18:53:42 +08:00
// 配置信息
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',
2022-01-23 18:30:56 +08:00
// 后端菜单缓存key列表
// 菜单权限缓存存储key
// 插件权限缓存存储key
2021-07-18 23:42:10 +08:00
'cache_admin_left_menu_key' => 'cache_admin_left_menu_',
2022-01-23 18:30:56 +08:00
'cache_admin_power_key' => 'cache_admin_power_',
'cache_admin_power_plugins_key' => 'cache_admin_power_plugins_',
2021-07-18 23:42:10 +08:00
// 公共缓存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
// 商品大分类缓存
2020-01-16 15:01:30 +08:00
'cache_goods_category_key' => 'cache_goods_category_key_data',
// 应用数据缓存
2020-01-16 15:01:30 +08:00
'cache_plugins_data_key' => 'cache_plugins_data_key_data_',
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',
// 站点域名地址
'domain_url' => $domain_url,
// 附件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
// 应用商店基础地址
2021-10-24 11:36:22 +08:00
'website_url' => $store_http.'shopxo.net/',
'store_url' => $store_http.'store.shopxo.net/',
'store_payment_url' => $store_http.'store.shopxo.net/',
'store_theme_url' => $store_http.'store.shopxo.net/',
'store_regster_url' => $store_http.'store.shopxo.net/regster.html',
2021-07-28 00:55:51 +08:00
// 插件在线下载地址
2021-10-24 11:36:22 +08:00
'store_download_url' => $store_http.'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
// 远程系统更新接口
2021-10-24 11:36:22 +08:00
'store_system_upgrade_url' => $store_http.'store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=systemsupgradeurl',
2021-07-28 00:55:51 +08:00
// 远程插件更新接口
2021-10-24 11:36:22 +08:00
'store_plugins_upgrade_url' => $store_http.'store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeurl',
2021-07-28 00:55:51 +08:00
// 远程信息接口
2021-10-24 11:36:22 +08:00
'store_site_info_url' => $store_http.'store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=siteinfo',
2021-07-28 00:55:51 +08:00
// 远程检查更新接口
2021-10-24 11:36:22 +08:00
'store_inspect_upgrade_url' => $store_http.'store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=inspectupgrade',
2021-07-28 00:55:51 +08:00
// 远程插件安全合法校验接口
2021-10-24 11:36:22 +08:00
'store_plugins_legal_check_url' => $store_http.'store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginslegalcheck',
2021-07-28 00:55:51 +08:00
// 远程插件更新信息接口
2021-10-24 11:36:22 +08:00
'store_plugins_upgrade_info_url' => $store_http.'store.shopxo.net/api.php?s=plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeinfo',
2021-07-28 00:55:51 +08:00
2018-12-29 13:13:09 +08:00
// 支付业务类型,支付插件根据业务类型自动生成支付入口文件
'payment_business_type_all' => [
['name' => 'Order', 'desc' => '订单'],
],
// 不删除的支付方式
'payment_cannot_deleted_list' => [
'CashPayment',
2022-03-04 17:31:13 +08:00
'DeliveryPayment',
'ChargePayment',
],
2018-12-29 13:13:09 +08:00
// 线下支付方式
2022-03-04 17:31:13 +08:00
'under_line_list' => [
'CashPayment',
'DeliveryPayment',
'ChargePayment',
],
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
];
?>