804 lines
51 KiB
PHP
804 lines
51 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed ( https://opensource.org/licenses/mit-license.php )
|
||
// +----------------------------------------------------------------------
|
||
// | Author: Devil
|
||
// +----------------------------------------------------------------------
|
||
namespace app\service;
|
||
|
||
/**
|
||
* 公共常量数据
|
||
* @author Devil
|
||
* @blog http://gong.gg/
|
||
* @version 1.0.0
|
||
* @date 2021-08-13
|
||
* @desc description
|
||
*/
|
||
class ConstService
|
||
{
|
||
/**
|
||
* 获取数据
|
||
* @author Devil
|
||
* @blog http://gong.gg/
|
||
* @version 1.0.0
|
||
* @date 2021-08-13
|
||
* @desc description
|
||
* @param [string] $key [数据key]
|
||
* @param [mixed] $default [默认数据]
|
||
*/
|
||
public static function Run($key = '', $default = null)
|
||
{
|
||
// 数据定义
|
||
static $const_data_container = null;
|
||
if($const_data_container === null)
|
||
{
|
||
$const_data_container = self::ConstData();
|
||
}
|
||
|
||
// 是否读取全部
|
||
if(empty($key))
|
||
{
|
||
$data = $const_data_container;
|
||
} else {
|
||
static $const_key_static_data = [];
|
||
if(!array_key_exists($key, $const_key_static_data))
|
||
{
|
||
// 是否存在多级
|
||
$arr = explode('.', $key);
|
||
if(count($arr) == 1)
|
||
{
|
||
$data = array_key_exists($key, $const_data_container) ? $const_data_container[$key] : $default;
|
||
} else {
|
||
$data = $const_data_container;
|
||
foreach($arr as $v)
|
||
{
|
||
if(isset($data[$v]))
|
||
{
|
||
$data = $data[$v];
|
||
} else {
|
||
$data = $default;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
$const_key_static_data[$key] = $data;
|
||
} else {
|
||
$data = $const_key_static_data[$key];
|
||
}
|
||
}
|
||
|
||
// 常量数据读取钩子
|
||
$hook_name = 'plugins_service_const_data';
|
||
MyEventTrigger($hook_name, [
|
||
'hook_name' => $hook_name,
|
||
'is_backend' => true,
|
||
'key' => $key,
|
||
'default' => $default,
|
||
'data' => &$data,
|
||
]);
|
||
|
||
return $data;
|
||
}
|
||
|
||
/**
|
||
* 数据定义容器
|
||
* @author Devil
|
||
* @blog http://gong.gg/
|
||
* @version 1.0.0
|
||
* @date 2021-08-14
|
||
* @desc description
|
||
*/
|
||
public static function ConstData()
|
||
{
|
||
// 商品管理导航列表
|
||
$goods_nav = MyLang('common_service.goods.goods_admin_nav_list');
|
||
|
||
return [
|
||
// -------------------- 公共 --------------------
|
||
// 系统版本列表
|
||
'common_system_version_list' => [
|
||
'1.1.0' => ['value' => '1.1.0', 'name' => 'v1.1.0'],
|
||
'1.2.0' => ['value' => '1.2.0', 'name' => 'v1.2.0'],
|
||
'1.3.0' => ['value' => '1.3.0', 'name' => 'v1.3.0'],
|
||
'1.4.0' => ['value' => '1.4.0', 'name' => 'v1.4.0'],
|
||
'1.5.0' => ['value' => '1.5.0', 'name' => 'v1.5.0'],
|
||
'1.6.0' => ['value' => '1.6.0', 'name' => 'v1.6.0'],
|
||
'1.7.0' => ['value' => '1.7.0', 'name' => 'v1.7.0'],
|
||
'1.8.0' => ['value' => '1.8.0', 'name' => 'v1.8.0'],
|
||
'1.8.1' => ['value' => '1.8.1', 'name' => 'v1.8.1'],
|
||
'1.9.0' => ['value' => '1.9.0', 'name' => 'v1.9.0'],
|
||
'1.9.1' => ['value' => '1.9.1', 'name' => 'v1.9.1'],
|
||
'1.9.2' => ['value' => '1.9.2', 'name' => 'v1.9.2'],
|
||
'1.9.3' => ['value' => '1.9.3', 'name' => 'v1.9.3'],
|
||
'2.0.0' => ['value' => '2.0.0', 'name' => 'v2.0.0'],
|
||
'2.0.1' => ['value' => '2.0.1', 'name' => 'v2.0.1'],
|
||
'2.0.2' => ['value' => '2.0.2', 'name' => 'v2.0.2'],
|
||
'2.0.3' => ['value' => '2.0.3', 'name' => 'v2.0.3'],
|
||
'2.1.0' => ['value' => '2.1.0', 'name' => 'v2.1.0'],
|
||
'2.2.0' => ['value' => '2.2.0', 'name' => 'v2.2.0'],
|
||
'2.2.1' => ['value' => '2.2.1', 'name' => 'v2.2.1'],
|
||
'2.2.2' => ['value' => '2.2.2', 'name' => 'v2.2.2'],
|
||
'2.2.3' => ['value' => '2.2.3', 'name' => 'v2.2.3'],
|
||
'2.2.4' => ['value' => '2.2.4', 'name' => 'v2.2.4'],
|
||
'2.2.5' => ['value' => '2.2.5', 'name' => 'v2.2.5'],
|
||
'2.2.6' => ['value' => '2.2.6', 'name' => 'v2.2.6'],
|
||
'2.2.7' => ['value' => '2.2.7', 'name' => 'v2.2.7'],
|
||
'2.2.8' => ['value' => '2.2.8', 'name' => 'v2.2.8'],
|
||
'2.2.9' => ['value' => '2.2.9', 'name' => 'v2.2.9'],
|
||
'2.3.0' => ['value' => '2.3.0', 'name' => 'v2.3.0'],
|
||
'2.3.1' => ['value' => '2.3.1', 'name' => 'v2.3.1'],
|
||
'2.3.2' => ['value' => '2.3.2', 'name' => 'v2.3.2'],
|
||
'2.3.3' => ['value' => '2.3.3', 'name' => 'v2.3.3'],
|
||
'3.0.0' => ['value' => '3.0.0', 'name' => 'v3.0.0'],
|
||
'3.0.1' => ['value' => '3.0.1', 'name' => 'v3.0.1'],
|
||
'3.0.2' => ['value' => '3.0.2', 'name' => 'v3.0.2'],
|
||
'3.0.3' => ['value' => '3.0.3', 'name' => 'v3.0.3'],
|
||
'4.0.0' => ['value' => '4.0.0', 'name' => 'v4.0.0'],
|
||
'5.0.0' => ['value' => '5.0.0', 'name' => 'v5.0.0'],
|
||
'6.0.0' => ['value' => '6.0.0', 'name' => 'v6.0.0'],
|
||
'6.1.0' => ['value' => '6.1.0', 'name' => 'v6.1.0'],
|
||
'6.2.0' => ['value' => '6.2.0', 'name' => 'v6.2.0'],
|
||
'6.3.0' => ['value' => '6.3.0', 'name' => 'v6.3.0'],
|
||
'6.4.0' => ['value' => '6.4.0', 'name' => 'v6.4.0'],
|
||
'6.5.0' => ['value' => '6.5.0', 'name' => 'v6.5.0'],
|
||
'6.6.0' => ['value' => '6.6.0', 'name' => 'v6.6.0'],
|
||
'6.7.0' => ['value' => '6.7.0', 'name' => 'v6.7.0'],
|
||
'6.7.1' => ['value' => '6.7.1', 'name' => 'v6.7.1'],
|
||
'6.8.0' => ['value' => '6.8.0', 'name' => 'v6.8.0'],
|
||
],
|
||
|
||
// 搜索排序方式
|
||
'common_search_order_by_list' => [
|
||
['name' => MyLang('common_search_order_by_list.default'), 'type' => 'default', 'value' => 'desc'],
|
||
['name' => MyLang('common_search_order_by_list.sales'), 'type' => 'sales', 'value' => 'desc'],
|
||
['name' => MyLang('common_search_order_by_list.access'), 'type' => 'access', 'value' => 'desc'],
|
||
['name' => MyLang('common_search_order_by_list.price'), 'type' => 'price', 'value' => 'desc'],
|
||
['name' => MyLang('common_search_order_by_list.new'), 'type' => 'new', 'value' => 'desc'],
|
||
],
|
||
// 用户注册类型列表
|
||
'common_user_reg_type_list' => [
|
||
['value' => 'username', 'name' => MyLang('common_user_reg_type_list.username')],
|
||
['value' => 'sms', 'name' => MyLang('common_user_reg_type_list.sms')],
|
||
['value' => 'email', 'name' => MyLang('common_user_reg_type_list.email')],
|
||
],
|
||
// 登录方式
|
||
'common_login_type_list' => [
|
||
['value' => 'username', 'name' => MyLang('common_login_type_list.username'), 'checked' => true],
|
||
['value' => 'sms', 'name' => MyLang('common_login_type_list.sms')],
|
||
['value' => 'email', 'name' => MyLang('common_login_type_list.email')],
|
||
],
|
||
// 性别
|
||
'common_gender_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_gender_list.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_gender_list.1')],
|
||
2 => ['id' => 2, 'name' => MyLang('common_gender_list.2')],
|
||
],
|
||
// 关闭开启状态
|
||
'common_close_open_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_close_open_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_close_open_list.1')],
|
||
],
|
||
// 是否启用
|
||
'common_is_enable_tips' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_is_enable_tips.0')],
|
||
1 => ['id' => 1, 'name' => MyLang('common_is_enable_tips.1')],
|
||
],
|
||
'common_is_enable_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_is_enable_list.0')],
|
||
1 => ['id' => 1, 'name' => MyLang('common_is_enable_list.1'), 'checked' => true],
|
||
],
|
||
// 是否显示
|
||
'common_is_show_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_is_show_list.0')],
|
||
1 => ['id' => 1, 'name' => MyLang('common_is_show_list.1'), 'checked' => true],
|
||
],
|
||
// excel编码列表
|
||
'common_excel_charset_list' => [
|
||
0 => ['id' => 0, 'value' => 'utf-8', 'name' => MyLang('common_excel_charset_list.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'value' => 'gbk', 'name' => MyLang('common_excel_charset_list.1')],
|
||
],
|
||
// excel导出类型列表
|
||
'common_excel_export_type_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_excel_export_type_list.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_excel_export_type_list.1')],
|
||
],
|
||
// 地图类型列表
|
||
'common_map_type_list' => [
|
||
'baidu' => ['id' => 'baidu', 'name' => MyLang('common_map_type_list.baidu'), 'checked' => true],
|
||
'amap' => ['id' => 'amap', 'name' => MyLang('common_map_type_list.amap')],
|
||
'tencent' => ['id' => 'tencent', 'name' => MyLang('common_map_type_list.tencent')],
|
||
'tianditu' => ['id' => 'tianditu', 'name' => MyLang('common_map_type_list.tianditu')],
|
||
],
|
||
// 支付支付状态
|
||
'common_order_pay_status' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_order_pay_status.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_order_pay_status.1')],
|
||
2 => ['id' => 2, 'name' => MyLang('common_order_pay_status.2')],
|
||
3 => ['id' => 3, 'name' => MyLang('common_order_pay_status.3')],
|
||
],
|
||
// 订单状态
|
||
'common_order_status' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_order_status.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_order_status.1')],
|
||
2 => ['id' => 2, 'name' => MyLang('common_order_status.2')],
|
||
3 => ['id' => 3, 'name' => MyLang('common_order_status.3')],
|
||
4 => ['id' => 4, 'name' => MyLang('common_order_status.4')],
|
||
5 => ['id' => 5, 'name' => MyLang('common_order_status.5')],
|
||
6 => ['id' => 6, 'name' => MyLang('common_order_status.6')],
|
||
],
|
||
// 所属平台
|
||
'common_platform_type' => [
|
||
'pc' => ['value' => 'pc', 'name' => MyLang('common_platform_type.pc')],
|
||
'h5' => ['value' => 'h5', 'name' => MyLang('common_platform_type.h5')],
|
||
'ios' => ['value' => 'ios', 'name' => MyLang('common_platform_type.ios')],
|
||
'android' => ['value' => 'android', 'name' => MyLang('common_platform_type.android')],
|
||
'weixin' => ['value' => 'weixin', 'name' => MyLang('common_platform_type.weixin')],
|
||
'alipay' => ['value' => 'alipay', 'name' => MyLang('common_platform_type.alipay')],
|
||
'baidu' => ['value' => 'baidu', 'name' => MyLang('common_platform_type.baidu')],
|
||
'toutiao' => ['value' => 'toutiao', 'name' => MyLang('common_platform_type.toutiao')],
|
||
'qq' => ['value' => 'qq', 'name' => MyLang('common_platform_type.qq')],
|
||
'kuaishou' => ['value' => 'kuaishou', 'name' => MyLang('common_platform_type.kuaishou')],
|
||
],
|
||
// app平台
|
||
'common_app_type' => [
|
||
'ios' => ['value' => 'ios', 'name' => MyLang('common_app_type.ios')],
|
||
'android' => ['value' => 'android', 'name' => MyLang('common_app_type.android')],
|
||
],
|
||
// 小程序平台
|
||
'common_appmini_type' => [
|
||
'weixin' => ['value' => 'weixin', 'name' => MyLang('common_appmini_type.weixin')],
|
||
'alipay' => ['value' => 'alipay', 'name' => MyLang('common_appmini_type.alipay')],
|
||
'baidu' => ['value' => 'baidu', 'name' => MyLang('common_appmini_type.baidu')],
|
||
'toutiao' => ['value' => 'toutiao', 'name' => MyLang('common_appmini_type.toutiao')],
|
||
'qq' => ['value' => 'qq', 'name' => MyLang('common_appmini_type.qq')],
|
||
'kuaishou' => ['value' => 'kuaishou', 'name' => MyLang('common_appmini_type.kuaishou')],
|
||
],
|
||
// 扣除库存规则
|
||
'common_deduction_inventory_rules_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_deduction_inventory_rules_list.0')],
|
||
1 => ['id' => 1, 'name' => MyLang('common_deduction_inventory_rules_list.1')],
|
||
2 => ['id' => 2, 'name' => MyLang('common_deduction_inventory_rules_list.2')],
|
||
],
|
||
// 商品增加销量规则
|
||
'common_sales_count_inc_rules_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_sales_count_inc_rules_list.0')],
|
||
1 => ['id' => 1, 'name' => MyLang('common_sales_count_inc_rules_list.1')],
|
||
],
|
||
// 是否已读
|
||
'common_is_read_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_is_read_list.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_is_read_list.1')],
|
||
],
|
||
// 消息类型
|
||
'common_message_type_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_message_type_list.0'), 'checked' => true],
|
||
],
|
||
// 用户积分 - 操作类型
|
||
'common_integral_log_type_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_integral_log_type_list.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_integral_log_type_list.1')],
|
||
],
|
||
// 是否上架/下架
|
||
'common_is_shelves_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_is_shelves_list.0')],
|
||
1 => ['id' => 1, 'name' => MyLang('common_is_shelves_list.1'), 'checked' => true],
|
||
],
|
||
// 是否
|
||
'common_is_text_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_is_text_list.0'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_is_text_list.1')],
|
||
],
|
||
// 用户状态
|
||
'common_user_status_list' => [
|
||
0 => ['id' => 0, 'name' => MyLang('common_user_status_list.0.name'), 'checked' => true],
|
||
1 => ['id' => 1, 'name' => MyLang('common_user_status_list.1.name'), 'tips' => MyLang('common_user_status_list.1.tips')],
|
||
2 => ['id' => 2, 'name' => MyLang('common_user_status_list.2.name'), 'tips' => MyLang('common_user_status_list.2.tips')],
|
||
3 => ['id' => 3, 'name' => MyLang('common_user_status_list.3.name'), 'tips' => MyLang('common_user_status_list.3.tips')],
|
||
],
|
||
// 导航数据类型
|
||
'common_nav_type_list' => [
|
||
'custom' => ['value' => 'custom', 'name' => MyLang('common_nav_type_list.custom')],
|
||
'article' => ['value' => 'article', 'name' => MyLang('common_nav_type_list.article')],
|
||
'customview' => ['value' => 'customview', 'name' => MyLang('common_nav_type_list.customview')],
|
||
'goods_category' => ['value' => 'goods_category', 'name' => MyLang('common_nav_type_list.goods_category')],
|
||
'design' => ['value' => 'design', 'name' => MyLang('common_nav_type_list.design')],
|
||
'plugins' => ['value' => 'plugins', 'name' => MyLang('common_nav_type_list.plugins')],
|
||
],
|
||
// 搜索框下热门关键字类型
|
||
'common_search_keywords_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_search_keywords_type_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_search_keywords_type_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_search_keywords_type_list.2')],
|
||
],
|
||
// app事件类型
|
||
'common_app_event_type' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_app_event_type.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_app_event_type.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_app_event_type.2')],
|
||
3 => ['value' => 3, 'name' => MyLang('common_app_event_type.3')],
|
||
4 => ['value' => 4, 'name' => MyLang('common_app_event_type.4')],
|
||
],
|
||
// 下单指定时间
|
||
'common_buy_datetime_config_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_buy_datetime_config_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_buy_datetime_config_list.1')],
|
||
],
|
||
// 下单联系信息
|
||
'common_buy_extraction_contact_config_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_buy_extraction_contact_config_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_buy_extraction_contact_config_list.1')],
|
||
],
|
||
// 订单售后类型
|
||
'common_order_aftersale_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_order_aftersale_type_list.0.name'), 'desc' => MyLang('common_order_aftersale_type_list.0.desc'), 'icon' => 'am-icon-random'],
|
||
1 => ['value' => 1, 'name' => MyLang('common_order_aftersale_type_list.1.name'), 'desc' => MyLang('common_order_aftersale_type_list.1.desc'), 'icon' => 'am-icon-retweet'],
|
||
],
|
||
// 订单售后状态
|
||
'common_order_aftersale_status_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_order_aftersale_status_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_order_aftersale_status_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_order_aftersale_status_list.2')],
|
||
3 => ['value' => 3, 'name' => MyLang('common_order_aftersale_status_list.3')],
|
||
4 => ['value' => 4, 'name' => MyLang('common_order_aftersale_status_list.4')],
|
||
5 => ['value' => 5, 'name' => MyLang('common_order_aftersale_status_list.5')],
|
||
],
|
||
// 订单售后退款方式
|
||
'common_order_aftersale_refundment_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_order_aftersale_refundment_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_order_aftersale_refundment_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_order_aftersale_refundment_list.2')],
|
||
],
|
||
// 商品评分
|
||
'common_goods_comments_rating_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_goods_comments_rating_list.0'), 'badge' => ''],
|
||
1 => ['value' => 1, 'name' => MyLang('common_goods_comments_rating_list.1'), 'badge' => 'danger'],
|
||
2 => ['value' => 2, 'name' => MyLang('common_goods_comments_rating_list.2'), 'badge' => 'warning'],
|
||
3 => ['value' => 3, 'name' => MyLang('common_goods_comments_rating_list.3'), 'badge' => 'secondary'],
|
||
4 => ['value' => 4, 'name' => MyLang('common_goods_comments_rating_list.4'), 'badge' => 'primary'],
|
||
5 => ['value' => 5, 'name' => MyLang('common_goods_comments_rating_list.5'), 'badge' => 'success'],
|
||
],
|
||
// 商品评论业务类型
|
||
'common_goods_comments_business_type_list' => [
|
||
'order' => ['value' => 'order', 'name' => MyLang('common_goods_comments_business_type_list.order')],
|
||
],
|
||
// 商品基础字段
|
||
'common_goods_base_data_fields' => [
|
||
'brand_name' => MyLang('common_goods_base_data_fields.brand_name'),
|
||
'simple_desc' => MyLang('common_goods_base_data_fields.simple_desc'),
|
||
'spec_desc' => MyLang('common_goods_base_data_fields.spec_desc'),
|
||
'approval_number' => MyLang('common_goods_base_data_fields.approval_number'),
|
||
'approval_number_expire' => MyLang('common_goods_base_data_fields.approval_number_expire'),
|
||
'batch_number' => MyLang('common_goods_base_data_fields.batch_number'),
|
||
'batch_number_expire' => MyLang('common_goods_base_data_fields.batch_number_expire'),
|
||
'coding' => MyLang('common_goods_base_data_fields.coding'),
|
||
'model' => MyLang('common_goods_base_data_fields.model'),
|
||
'produce_company' => MyLang('common_goods_base_data_fields.produce_company'),
|
||
'produce_region_name' => MyLang('common_goods_base_data_fields.produce_region_name'),
|
||
'spec_weight' => MyLang('common_goods_base_data_fields.spec_weight'),
|
||
'spec_volume' => MyLang('common_goods_base_data_fields.spec_volume'),
|
||
'spec_coding' => MyLang('common_goods_base_data_fields.spec_coding'),
|
||
'spec_barcode' => MyLang('common_goods_base_data_fields.spec_barcode'),
|
||
|
||
],
|
||
// 站点类型
|
||
'common_site_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_site_type_list.0'), 'checked'=>true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_site_type_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_site_type_list.2')],
|
||
3 => ['value' => 3, 'name' => MyLang('common_site_type_list.3')],
|
||
4 => ['value' => 4, 'name' => MyLang('common_site_type_list.4')],
|
||
5 => ['value' => 5, 'name' => MyLang('common_site_type_list.5'), 'is_ext' => 1],
|
||
6 => ['value' => 6, 'name' => MyLang('common_site_type_list.6'), 'is_ext' => 1],
|
||
7 => ['value' => 7, 'name' => MyLang('common_site_type_list.7'), 'is_ext' => 1],
|
||
8 => ['value' => 8, 'name' => MyLang('common_site_type_list.8'), 'is_ext' => 1],
|
||
],
|
||
// 订单类型
|
||
'common_order_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_order_type_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_order_type_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_order_type_list.2')],
|
||
3 => ['value' => 3, 'name' => MyLang('common_order_type_list.3')],
|
||
],
|
||
// 管理员状态
|
||
'common_admin_status_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_admin_status_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_admin_status_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_admin_status_list.2')],
|
||
],
|
||
// 支付日志状态
|
||
'common_pay_log_status_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_pay_log_status_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_pay_log_status_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_pay_log_status_list.2')],
|
||
],
|
||
// 支付日志业务类型
|
||
'common_pay_log_business_type_list' => [
|
||
'order' => ['value' => 'order', 'name' => MyLang('common_pay_log_business_type_list.order')],
|
||
],
|
||
// 商品参数展示范围
|
||
'common_goods_parameters_scope_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_goods_parameters_scope_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_goods_parameters_scope_list.1'), 'checked' => true],
|
||
2 => ['value' => 2, 'name' => MyLang('common_goods_parameters_scope_list.2')],
|
||
],
|
||
// 商品参数数据类型
|
||
'common_goods_parameters_data_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_goods_parameters_data_type_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_goods_parameters_data_type_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_goods_parameters_data_type_list.2')],
|
||
],
|
||
// 搜索商品展示样式类型
|
||
'common_search_goods_show_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_search_goods_show_type_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_search_goods_show_type_list.1')],
|
||
],
|
||
// 品牌排序类型
|
||
'common_brand_order_by_type_list' => [
|
||
0 => ['index' => 0, 'value' => 'sort,id', 'name' => MyLang('common_brand_order_by_type_list.0'), 'checked' => true],
|
||
1 => ['index' => 1, 'value' => 'name', 'name' => MyLang('common_brand_order_by_type_list.1')],
|
||
2 => ['index' => 2, 'value' => 'sort', 'name' => MyLang('common_brand_order_by_type_list.2')],
|
||
3 => ['index' => 3, 'value' => 'id', 'name' => MyLang('common_brand_order_by_type_list.3')],
|
||
],
|
||
// 文章排序类型
|
||
'common_article_order_by_type_list' => [
|
||
0 => ['index' => 0, 'value' => 'access_count,id', 'name' => MyLang('common_article_order_by_type_list.0'), 'checked' => true],
|
||
1 => ['index' => 1, 'value' => 'access_count', 'name' => MyLang('common_article_order_by_type_list.1')],
|
||
2 => ['index' => 2, 'value' => 'id', 'name' => MyLang('common_article_order_by_type_list.2')],
|
||
],
|
||
// 商品关联排序类型
|
||
'common_goods_order_by_type_list' => [
|
||
0 => ['index' => 0, 'value' => 'g.access_count,g.sales_count,g.id', 'name' => MyLang('common_goods_order_by_type_list.0'), 'checked' => true],
|
||
1 => ['index' => 1, 'value' => 'g.sales_count', 'name' => MyLang('common_goods_order_by_type_list.1')],
|
||
2 => ['index' => 2, 'value' => 'g.access_count', 'name' => MyLang('common_goods_order_by_type_list.2')],
|
||
3 => ['index' => 3, 'value' => 'g.min_price', 'name' => MyLang('common_goods_order_by_type_list.3')],
|
||
4 => ['index' => 4, 'value' => 'g.id', 'name' => MyLang('common_goods_order_by_type_list.4')],
|
||
],
|
||
// 用户商品收藏排序类型
|
||
'common_goods_favor_order_by_type_list' => [
|
||
0 => ['index' => 0, 'value' => 'g.access_count,g.sales_count,f.id', 'name' => MyLang('common_goods_favor_order_by_type_list.0'), 'checked' => true],
|
||
1 => ['index' => 1, 'value' => 'g.sales_count', 'name' => MyLang('common_goods_favor_order_by_type_list.1')],
|
||
2 => ['index' => 2, 'value' => 'g.access_count', 'name' => MyLang('common_goods_favor_order_by_type_list.2')],
|
||
3 => ['index' => 3, 'value' => 'g.min_price', 'name' => MyLang('common_goods_favor_order_by_type_list.3')],
|
||
4 => ['index' => 4, 'value' => 'f.id', 'name' => MyLang('common_goods_favor_order_by_type_list.4')],
|
||
],
|
||
// 用户商品浏览排序类型
|
||
'common_goods_browse_order_by_type_list' => [
|
||
0 => ['index' => 0, 'value' => 'b.access_count,g.access_count,g.sales_count,b.id', 'name' => MyLang('common_goods_browse_order_by_type_list.0'), 'checked' => true],
|
||
1 => ['index' => 1, 'value' => 'g.sales_count', 'name' => MyLang('common_goods_browse_order_by_type_list.1')],
|
||
2 => ['index' => 2, 'value' => 'g.access_count', 'name' => MyLang('common_goods_browse_order_by_type_list.2')],
|
||
3 => ['index' => 3, 'value' => 'g.min_price', 'name' => MyLang('common_goods_browse_order_by_type_list.3')],
|
||
4 => ['index' => 4, 'value' => 'b.id', 'name' => MyLang('common_goods_browse_order_by_type_list.4')],
|
||
5 => ['index' => 5, 'value' => 'b.access_count', 'name' => MyLang('common_goods_browse_order_by_type_list.5')],
|
||
],
|
||
// 数据排序规则
|
||
'common_data_order_by_rule_list' => [
|
||
0 => ['index' => 0, 'value' => 'desc', 'name' => MyLang('common_data_order_by_rule_list.0'), 'checked' => true],
|
||
1 => ['index' => 1, 'value' => 'asc', 'name' => MyLang('common_data_order_by_rule_list.1')],
|
||
],
|
||
// 首页数据类型
|
||
'common_site_floor_data_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_site_floor_data_type_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_site_floor_data_type_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_site_floor_data_type_list.2')],
|
||
],
|
||
// 文件上传错误码
|
||
'common_file_upload_error_list' => [
|
||
1 => MyLang('common_file_upload_error_list.1'),
|
||
2 => MyLang('common_file_upload_error_list.2'),
|
||
3 => MyLang('common_file_upload_error_list.3'),
|
||
4 => MyLang('common_file_upload_error_list.4'),
|
||
5 => MyLang('common_file_upload_error_list.5'),
|
||
6 => MyLang('common_file_upload_error_list.6'),
|
||
7 => MyLang('common_file_upload_error_list.7'),
|
||
8 => MyLang('common_file_upload_error_list.8'),
|
||
],
|
||
// 用户基础信息提示页面(index 首页、goods-category 商品分类、cart 购物车、 user 用户中心、share 分享)
|
||
'common_user_base_popup_pages_list' => [
|
||
'index' => ['value' => 'index', 'name' => MyLang('common_user_base_popup_pages_list.index')],
|
||
'goods-category' => ['value' => 'goods-category', 'name' => MyLang('common_user_base_popup_pages_list.goods-category')],
|
||
'cart' => ['value' => 'cart', 'name' => MyLang('common_user_base_popup_pages_list.cart')],
|
||
'user' => ['value' => 'user', 'name' => MyLang('common_user_base_popup_pages_list.user')],
|
||
'share' => ['value' => 'share', 'name' => MyLang('common_user_base_popup_pages_list.share')],
|
||
],
|
||
// 多语言code 语言编码 => name 语言名称)
|
||
'common_multilingual_list' => [
|
||
'zh' => MyLang('common_multilingual_list.zh'),
|
||
'cht' => MyLang('common_multilingual_list.cht'),
|
||
'en' => MyLang('common_multilingual_list.en'),
|
||
'ru' => MyLang('common_multilingual_list.ru'),
|
||
'kor' => MyLang('common_multilingual_list.kor'),
|
||
'th' => MyLang('common_multilingual_list.th'),
|
||
'jp' => MyLang('common_multilingual_list.jp'),
|
||
'de' => MyLang('common_multilingual_list.de'),
|
||
'nl' => MyLang('common_multilingual_list.nl'),
|
||
'vie' => MyLang('common_multilingual_list.vie'),
|
||
'it' => MyLang('common_multilingual_list.it'),
|
||
'spa' => MyLang('common_multilingual_list.spa'),
|
||
'fra' => MyLang('common_multilingual_list.fra'),
|
||
'swe' => MyLang('common_multilingual_list.swe'),
|
||
'mn' => MyLang('common_multilingual_list.mn'),
|
||
],
|
||
// 商品基础字段
|
||
'common_goods_base_fields_list' => [
|
||
'simple_desc' => MyLang('common_goods_base_fields_list.simple_desc'),
|
||
'spec_desc' => MyLang('common_goods_base_fields_list.spec_desc'),
|
||
'approval_number' => MyLang('common_goods_base_fields_list.approval_number'),
|
||
'approval_number_expire' => MyLang('common_goods_base_fields_list.approval_number_expire'),
|
||
'batch_number' => MyLang('common_goods_base_fields_list.batch_number'),
|
||
'batch_number_expire' => MyLang('common_goods_base_fields_list.batch_number_expire'),
|
||
'coding' => MyLang('common_goods_base_fields_list.coding'),
|
||
'model' => MyLang('common_goods_base_fields_list.model'),
|
||
'brand_id' => MyLang('common_goods_base_fields_list.brand_id'),
|
||
'produce_company' => MyLang('common_goods_base_fields_list.produce_company'),
|
||
'produce_region' => MyLang('common_goods_base_fields_list.produce_region'),
|
||
],
|
||
// 商品管理导航
|
||
'common_goods_admin_nav_list' => [
|
||
|
||
'base' => [
|
||
'name' => $goods_nav['base']['name'],
|
||
'tips' => isset($goods_nav['base']['tips']) ? $goods_nav['base']['tips'] : '',
|
||
],
|
||
'spec' => [
|
||
'name' => $goods_nav['spec']['name'],
|
||
'tips' => isset($goods_nav['spec']['tips']) ? $goods_nav['spec']['tips'] : '',
|
||
],
|
||
'spec_images' => [
|
||
'name' => $goods_nav['spec_images']['name'],
|
||
'tips' => isset($goods_nav['spec_images']['tips']) ? $goods_nav['spec_images']['tips'] : '',
|
||
],
|
||
'parameters' => [
|
||
'name' => $goods_nav['parameters']['name'],
|
||
'tips' => isset($goods_nav['parameters']['tips']) ? $goods_nav['parameters']['tips'] : '',
|
||
],
|
||
'photo' => [
|
||
'name' => $goods_nav['photo']['name'],
|
||
'tips' => isset($goods_nav['photo']['tips']) ? $goods_nav['photo']['tips'] : '',
|
||
],
|
||
'video' => [
|
||
'name' => $goods_nav['video']['name'],
|
||
'tips' => isset($goods_nav['video']['tips']) ? $goods_nav['video']['tips'] : '',
|
||
],
|
||
'app' => [
|
||
'name' => $goods_nav['app']['name'],
|
||
'tips' => isset($goods_nav['app']['tips']) ? $goods_nav['app']['tips'] : '',
|
||
],
|
||
'web' => [
|
||
'name' => $goods_nav['web']['name'],
|
||
'tips' => isset($goods_nav['web']['tips']) ? $goods_nav['web']['tips'] : '',
|
||
],
|
||
'fictitious' => [
|
||
'name' => $goods_nav['fictitious']['name'],
|
||
'tips' => isset($goods_nav['fictitious']['tips']) ? $goods_nav['fictitious']['tips'] : '',
|
||
],
|
||
'extends' => [
|
||
'name' => $goods_nav['extends']['name'],
|
||
'tips' => isset($goods_nav['extends']['tips']) ? $goods_nav['extends']['tips'] : '',
|
||
],
|
||
'use_guide' => [
|
||
'name' => $goods_nav['use_guide']['name'],
|
||
'tips' => isset($goods_nav['use_guide']['tips']) ? $goods_nav['use_guide']['tips'] : '',
|
||
],
|
||
'seo' => [
|
||
'name' => $goods_nav['seo']['name'],
|
||
'tips' => isset($goods_nav['seo']['tips']) ? $goods_nav['seo']['tips'] : '',
|
||
],
|
||
],
|
||
// token生成规则
|
||
'common_token_created_rules_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_token_created_rules_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_token_created_rules_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_token_created_rules_list.2')],
|
||
3 => ['value' => 3, 'name' => MyLang('common_token_created_rules_list.3')],
|
||
4 => ['value' => 4, 'name' => MyLang('common_token_created_rules_list.4')],
|
||
],
|
||
// 商品分类展示层级类型
|
||
'common_show_goods_category_level_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_show_goods_category_level_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_show_goods_category_level_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_show_goods_category_level_list.2')],
|
||
3 => ['value' => 3, 'name' => MyLang('common_show_goods_category_level_list.3')],
|
||
],
|
||
// 图片验证码类型
|
||
'common_site_images_verify_rand_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_site_images_verify_rand_type_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_site_images_verify_rand_type_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_site_images_verify_rand_type_list.2')],
|
||
],
|
||
// 图片验证码规则
|
||
'common_site_images_verify_rules_list' => [
|
||
0 => ['value' => 'bgcolor', 'name' => MyLang('common_site_images_verify_rules_list.0')],
|
||
1 => ['value' => 'textcolor', 'name' => MyLang('common_site_images_verify_rules_list.1')],
|
||
2 => ['value' => 'point', 'name' => MyLang('common_site_images_verify_rules_list.2')],
|
||
3 => ['value' => 'line', 'name' => MyLang('common_site_images_verify_rules_list.3')],
|
||
],
|
||
// url模式列表
|
||
'common_seo_url_model_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_seo_url_model_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_seo_url_model_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_seo_url_model_list.2')],
|
||
],
|
||
// 订单状态总数导航
|
||
'common_order_status_step_total_list' => [
|
||
['value' => 0, 'name' => MyLang('common_order_status_step_total_list.0')],
|
||
['value' => 1, 'name' => MyLang('common_order_status_step_total_list.1')],
|
||
['value' => 2, 'name' => MyLang('common_order_status_step_total_list.2')],
|
||
['value' => 3, 'name' => MyLang('common_order_status_step_total_list.3')],
|
||
['value' => 4, 'name' => MyLang('common_order_status_step_total_list.4')],
|
||
['value' => 5, 'name' => MyLang('common_order_status_step_total_list.5')],
|
||
['value' => 6, 'name' => MyLang('common_order_status_step_total_list.6')],
|
||
['value' => 100, 'name' => MyLang('common_order_status_step_total_list.100')],
|
||
['value' => 101, 'name' => MyLang('common_order_status_step_total_list.101')],
|
||
],
|
||
// 短信日志平台
|
||
'common_sms_log_platform_list' => [
|
||
'aliyun' => ['value' => 'aliyun', 'name' => MyLang('common_sms_log_platform_list.aliyun')],
|
||
],
|
||
// 短信日志状态
|
||
'common_sms_log_status_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_sms_log_status_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_sms_log_status_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_sms_log_status_list.2')],
|
||
],
|
||
// 邮件日志状态
|
||
'common_email_log_status_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_email_log_status_list.0')],
|
||
1 => ['value' => 1, 'name' => MyLang('common_email_log_status_list.1')],
|
||
2 => ['value' => 2, 'name' => MyLang('common_email_log_status_list.2')],
|
||
],
|
||
// 主题数据类型
|
||
'common_theme_type_list' => [
|
||
0 => ['value' => 0, 'type' => 'textimages', 'name' => MyLang('common_theme_type_list.0')],
|
||
1 => ['value' => 1, 'type' => 'manytextimages', 'name' => MyLang('common_theme_type_list.1')],
|
||
2 => ['value' => 2, 'type' => 'video', 'name' => MyLang('common_theme_type_list.2')],
|
||
3 => ['value' => 3, 'type' => 'goods', 'name' => MyLang('common_theme_type_list.3')],
|
||
4 => ['value' => 4, 'type' => 'article', 'name' => MyLang('common_theme_type_list.4')],
|
||
5 => ['value' => 5, 'type' => 'goodsgroup', 'name' => MyLang('common_theme_type_list.5')],
|
||
6 => ['value' => 6, 'type' => 'articlegroup', 'name' => MyLang('common_theme_type_list.6')],
|
||
],
|
||
// 主题数据页面
|
||
'common_theme_view_list' => [
|
||
0 => ['value' => 0, 'type' => 'indexindexindex', 'name' => MyLang('common_theme_view_list.0')],
|
||
1 => ['value' => 1, 'type' => 'indexsearchindex', 'name' => MyLang('common_theme_view_list.1')],
|
||
2 => ['value' => 2, 'type' => 'indexcategoryindex', 'name' => MyLang('common_theme_view_list.2')],
|
||
3 => ['value' => 3, 'type' => 'indexgoodsindex', 'name' => MyLang('common_theme_view_list.3')],
|
||
4 => ['value' => 4, 'type' => 'indexarticlecategory', 'name' => MyLang('common_theme_view_list.4')],
|
||
5 => ['value' => 5, 'type' => 'indexarticleindex', 'name' => MyLang('common_theme_view_list.5')],
|
||
6 => ['value' => 6, 'type' => 'indexbuyindex', 'name' => MyLang('common_theme_view_list.6')],
|
||
7 => ['value' => 7, 'type' => 'indexuserlogininfo', 'name' => MyLang('common_theme_view_list.7')],
|
||
8 => ['value' => 8, 'type' => 'indexuserreginfo', 'name' => MyLang('common_theme_view_list.8')],
|
||
9 => ['value' => 9, 'type' => 'indexuserforgetpwdinfo', 'name' => MyLang('common_theme_view_list.9')],
|
||
10 => ['value' => 10, 'type' => 'indexuserindex', 'name' => MyLang('common_theme_view_list.10')],
|
||
],
|
||
// 主题数据-商品类型
|
||
'common_theme_goods_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_theme_goods_type_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_theme_goods_type_list.1')],
|
||
],
|
||
// 主题数据-业务数据-图片
|
||
'common_theme_business_images_list' => [
|
||
['value' => 'icon', 'name' => MyLang('common_theme_business_images_list.icon')],
|
||
['value' => 'active_icon', 'name' => MyLang('common_theme_business_images_list.active_icon')],
|
||
['value' => 'shape', 'name' => MyLang('common_theme_business_images_list.shape')],
|
||
['value' => 'cooperate', 'name' => MyLang('common_theme_business_images_list.cooperate')],
|
||
['value' => 'title', 'name' => MyLang('common_theme_business_images_list.title')],
|
||
['value' => 'background', 'name' => MyLang('common_theme_business_images_list.background')],
|
||
['value' => 'detail_icon', 'name' => MyLang('common_theme_business_images_list.detail_icon')],
|
||
['value' => 'detail', 'name' => MyLang('common_theme_business_images_list.detail')],
|
||
['value' => 'detail_title', 'name' => MyLang('common_theme_business_images_list.detail_title')],
|
||
['value' => 'detail_background', 'name' => MyLang('common_theme_business_images_list.detail_background')],
|
||
],
|
||
// 主题数据-业务数据-文本-input
|
||
'common_theme_business_text_input_list' => [
|
||
['value' => 'title', 'name' => MyLang('common_theme_business_text_input_list.title')],
|
||
['value' => 'vice_title', 'name' => MyLang('common_theme_business_text_input_list.vice_title')],
|
||
['value' => 'date', 'type' => 'date', 'name' => MyLang('common_theme_business_text_input_list.date')],
|
||
['value' => 'more', 'name' => MyLang('common_theme_business_text_input_list.more')],
|
||
['value' => 'btn', 'name' => MyLang('common_theme_business_text_input_list.btn')],
|
||
['value' => 'describe', 'name' => MyLang('common_theme_business_text_input_list.describe')],
|
||
],
|
||
// 主题数据-业务数据-文本-textarea
|
||
'common_theme_business_text_textarea_list' => [
|
||
['value' => 'detail_describe', 'name' => MyLang('common_theme_business_text_textarea_list.detail_describe')],
|
||
['value' => 'detail_content', 'name' => MyLang('common_theme_business_text_textarea_list.detail_content')],
|
||
],
|
||
// 主题数据-文章类型
|
||
'common_theme_article_type_list' => [
|
||
0 => ['value' => 0, 'name' => MyLang('common_theme_article_type_list.0'), 'checked' => true],
|
||
1 => ['value' => 1, 'name' => MyLang('common_theme_article_type_list.1')],
|
||
],
|
||
// 附件分类-路径名称匹配
|
||
'common_attachment_category_path_name_list' => [
|
||
'common' => MyLang('common_attachment_category_path_name_list.common'),
|
||
'goods' => MyLang('common_attachment_category_path_name_list.goods'),
|
||
'goods_category' => MyLang('common_attachment_category_path_name_list.goods_category'),
|
||
'brand' => MyLang('common_attachment_category_path_name_list.brand'),
|
||
'brand_category' => MyLang('common_attachment_category_path_name_list.brand_category'),
|
||
'customview' => MyLang('common_attachment_category_path_name_list.customview'),
|
||
'express' => MyLang('common_attachment_category_path_name_list.express'),
|
||
'app_center_nav' => MyLang('common_attachment_category_path_name_list.app_center_nav'),
|
||
'quick_nav' => MyLang('common_attachment_category_path_name_list.quick_nav'),
|
||
'shortcutmenu' => MyLang('common_attachment_category_path_name_list.shortcutmenu'),
|
||
'app_nav' => MyLang('common_attachment_category_path_name_list.app_nav'),
|
||
'slide' => MyLang('common_attachment_category_path_name_list.slide'),
|
||
'article' => MyLang('common_attachment_category_path_name_list.article'),
|
||
'user' => MyLang('common_attachment_category_path_name_list.user'),
|
||
'design' => MyLang('common_attachment_category_path_name_list.design'),
|
||
'plugins' => MyLang('common_attachment_category_path_name_list.plugins'),
|
||
'order_comments' => MyLang('common_attachment_category_path_name_list.order_comments'),
|
||
'theme_data' => MyLang('common_attachment_category_path_name_list.theme_data'),
|
||
'agreement' => MyLang('common_attachment_category_path_name_list.agreement'),
|
||
'warehouse' => MyLang('common_attachment_category_path_name_list.warehouse'),
|
||
],
|
||
// 附件管理-类型
|
||
'common_attachment_type_list' => [
|
||
'file' => MyLang('common_attachment_type_list.file'),
|
||
'image' => MyLang('common_attachment_type_list.image'),
|
||
'scrawl' => MyLang('common_attachment_type_list.scrawl'),
|
||
'video' => MyLang('common_attachment_type_list.video'),
|
||
'remote' => MyLang('common_attachment_type_list.remote'),
|
||
],
|
||
// 商店应用类型列表
|
||
'common_plugins_goods_type_list' => [
|
||
'plugins' => MyLang('common_plugins_goods_type_list.plugins'),
|
||
'payment' => MyLang('common_plugins_goods_type_list.payment'),
|
||
'webtheme' => MyLang('common_plugins_goods_type_list.webtheme'),
|
||
'design' => MyLang('common_plugins_goods_type_list.design'),
|
||
'diy' => MyLang('common_plugins_goods_type_list.diy'),
|
||
'forminput' => MyLang('common_plugins_goods_type_list.forminput'),
|
||
],
|
||
|
||
|
||
// -------------------- 正则 --------------------
|
||
// 用户名
|
||
'common_regex_username' => '^[A-Za-z0-9_]{2,18}$',
|
||
// 密码
|
||
'common_regex_pwd' => '^.{6,18}$',
|
||
// 包含字母和数字、6~16个字符
|
||
'common_regex_alpha_number' => '^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$',
|
||
// 手机号码
|
||
'common_regex_mobile' => MyC('common_regex_mobile', '^1((3|4|5|6|7|8|9){1}\d{1})\d{8}$'),
|
||
// 座机号码
|
||
'common_regex_tel' => MyC('common_regex_tel', '^\d{3,4}-?\d{8}$'),
|
||
// 电子邮箱
|
||
'common_regex_email' => '^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$',
|
||
// 身份证号码
|
||
'common_regex_id_card' => MyC('common_regex_id_card', '^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$'),
|
||
// 价格格式
|
||
'common_regex_price' => '^([0-9]{1}\d{0,7})(\.\d{1,2})?$',
|
||
// ip
|
||
'common_regex_ip' => '^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$',
|
||
// url
|
||
'common_regex_url' => '^http[s]?:\/\/[A-Za-z0-9-]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$',
|
||
// 控制器名称
|
||
'common_regex_control' => '^[A-Za-z]{1}[A-Za-z0-9_]{0,29}$',
|
||
// 方法名称
|
||
'common_regex_action' => '^[A-Za-z]{1}[A-Za-z0-9_]{0,29}$',
|
||
// 顺序
|
||
'common_regex_sort' => '^[0-9]{1,3}$',
|
||
// 日期
|
||
'common_regex_date' => '^\d{4}-\d{2}-\d{2}$',
|
||
// 分数
|
||
'common_regex_score' => '^[0-9]{1,3}$',
|
||
// 分页
|
||
'common_regex_page_number' => '^[1-9]{1}[0-9]{0,2}$',
|
||
// 时段格式 10:00-10:45
|
||
'common_regex_interval' => '^\d{2}\:\d{2}\-\d{2}\:\d{2}$',
|
||
// 颜色
|
||
'common_regex_color' => '^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$',
|
||
// id逗号隔开
|
||
'common_regex_id_comma_split' => '^\d(\d|,?)*\d$',
|
||
// url伪静态后缀
|
||
'common_regex_url_html_suffix' => '^[a-z]{0,8}$',
|
||
// 图片比例值
|
||
'common_regex_image_proportion' => '^([1-9]{1}[0-9]?|[1-9]{1}[0-9]?\.{1}[0-9]{1,2}|100|0)?$',
|
||
// 版本号
|
||
'common_regex_version' => '^[0-9]{1,6}\.[0-9]{1,6}\.[0-9]{1,6}$',
|
||
];
|
||
}
|
||
}
|
||
?>
|