shopxo.php 4.9 KB
Newer Older
D
devil_gong 已提交
1 2 3 4
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
D
devil_gong 已提交
5
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
D
devil_gong 已提交
6 7 8 9 10 11 12 13 14 15
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------

D
devil 已提交
16
// cdn地址
D
devil 已提交
17 18
$cdn_attachment_host = MyFileConfig('common_cdn_attachment_host', '', __MY_PUBLIC_URL__, true);
$cdn_public_host = MyFileConfig('common_cdn_public_host', '', __MY_PUBLIC_URL__, true);
D
devil 已提交
19 20 21 22 23 24 25 26 27 28
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;
}

// 配置信息
D
devil_gong 已提交
29
return [
G
1.3.0  
gongfuxiang 已提交
30
    // 开发模式
D
Devil 已提交
31
    'is_develop'                            => false,
G
1.3.0  
gongfuxiang 已提交
32

D
devil_gong 已提交
33 34 35 36 37
    // 默认编码
    'default_charset'                       => 'utf-8',

    // 缓存key列表
    // 公共系统配置信息key
D
devil 已提交
38
    'cache_common_my_config_key'            => 'cache_common_my_config_data',
D
devil_gong 已提交
39 40

    // 前台顶部导航,后端菜单更新则删除缓存
D
devil 已提交
41
    'cache_common_home_nav_header_key'      => 'cache_common_home_nav_header_data',
D
devil_gong 已提交
42 43

    // 前台顶部导航
D
devil 已提交
44
    'cache_common_home_nav_footer_key'      => 'cache_common_home_nav_footer_data',
D
devil_gong 已提交
45

46
    // 商品大分类缓存
D
devil 已提交
47
    'cache_goods_category_key'              => 'cache_goods_category_key_data',
48 49

    // 应用数据缓存
D
devil 已提交
50
    'cache_plugins_data_key'                => 'cache_plugins_data_key_data_',
51

D
devil_gong 已提交
52
    // 用户登录左侧数据
D
devil 已提交
53
    'cache_user_login_left_key'             => 'cache_user_login_left_data',
D
devil_gong 已提交
54 55

    // 用户密码找回左侧数据
D
devil 已提交
56
    'cache_user_forgetpwd_left_key'         => 'cache_user_forgetpwd_left_data',
D
devil_gong 已提交
57

D
devil_gong 已提交
58
    // 用户缓存信息
D
devil 已提交
59
    'cache_user_info'                       => 'cache_user_info_',
D
devil_gong 已提交
60

D
devil 已提交
61 62 63 64 65 66
    // 首页楼层缓存信息
    'cache_goods_floor_list_key'            => 'cache_goods_floor_list_data',

    // 轮播缓存信息
    'cache_banner_list_key'                 => 'cache_banner_list_data_',

D
devil 已提交
67 68 69 70 71 72 73 74
    // 手机首页导航缓存信息
    '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_',
D
devil 已提交
75

D
Devil 已提交
76 77 78
    // 地区所有数据缓存、1~3级
    'cache_region_all_key'                  => 'cache_region_all_data',

D
devil 已提交
79
    // 附件host、最后不要带/斜杠结尾, 数据库图片地址以/static/...开头
D
devil 已提交
80
    'attachment_host'                       => $cdn_attachment_host,
D
devil_gong 已提交
81

D
devil 已提交
82 83
    // css/js引入host地址、以/斜杠结尾
    'public_host'                           => $cdn_public_host,
D
devil 已提交
84

D
devil_gong 已提交
85
    // 应用商店地址
D
devil 已提交
86
    'website_url'                           => 'https://shopxo.net/',
D
devil 已提交
87
    'store_url'                             => 'https://store.shopxo.net/',
D
Devil 已提交
88 89 90
    'store_payment_url'                     => 'https://store.shopxo.net/',
    'store_theme_url'                       => 'https://store.shopxo.net/',
    'store_download_url'                    => 'http://dev.shopxo.net/index.php?s=store-package-onine.html',
D
devil_gong 已提交
91

D
devil_gong 已提交
92
    // 开启U带域名
D
devil 已提交
93
    'url_domain_deploy'                     => true,
D
devil_gong 已提交
94 95 96 97 98 99

    // 支付业务类型,支付插件根据业务类型自动生成支付入口文件
    'payment_business_type_all'             => [
        ['name' => 'Order', 'desc' => '订单'],
    ],

100 101 102 103 104 105
    // 不删除的支付方式
    'payment_cannot_deleted_list'           => [
        'DeliveryPayment',
        'CashPayment',
    ],

D
devil_gong 已提交
106 107
    // 线下支付方式
    'under_line_list'                       => ['CashPayment', 'DeliveryPayment'],
G
gongfuxiang 已提交
108 109

    // 小程序平台
D
devil 已提交
110
    'mini_app_type_list'                    => ['weixin', 'alipay', 'baidu', 'toutiao', 'qq'],
D
devil 已提交
111 112 113

    // 坐标需要转换的平台
    'coordinate_transformation'             => ['alipay', 'weixin', 'toutiao', 'baidu'],
D
devil 已提交
114

D
devil 已提交
115 116 117 118 119 120 121 122 123
    // 货币配置信息
    // 符号(默认 ¥)
    // 代码(默认 0.0000)
    // 汇率(默认 RMB)
    // 名称(默认 人民币)
    'currency_symbol'                       => '¥',
    'currency_code'                         => 'RMB',
    'currency_rate'                         => 0.0000,
    'currency_name'                         => '人民币',
D
devil 已提交
124 125 126

    // 验证码最大验证次数,防止暴力破解
    'security_prevent_violence_max'         => 6,
D
devil 已提交
127 128 129

    // 动态表格可加入钩子组
    'module_form_hook_group'                => ['admin', 'index', 'api'],
D
devil_gong 已提交
130 131
];
?>