commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
/** |
|
6 |
* This is the model class for table "{{%option}}". |
|
7 |
* |
|
8 |
* @property int $id |
|
9 |
* @property int $mall_id |
|
10 |
* @property int $mch_id |
|
11 |
* @property string $group |
|
12 |
* @property string $name |
|
13 |
* @property string $value |
|
14 |
* @property string $created_at |
|
15 |
* @property string $updated_at |
|
16 |
*/ |
|
17 |
class Option extends ModelActiveRecord |
|
18 |
{ |
|
19 |
const GROUP_ADMIN = 'admin'; |
|
20 |
const GROUP_APP = 'app'; |
|
21 |
|
|
22 |
const NAME_COPYRIGHT = 'copyright';//版权管理 |
|
23 |
const NAME_NAVBAR = 'navbar';//导航栏 |
|
24 |
const NAME_USER_CENTER = 'user_center';//导航栏 |
|
25 |
const NAME_PAGE_TITLE = 'page_title';//小程序页面标题 |
|
26 |
const NAME_HOME_PAGE = 'home_page';//首页布局 |
|
27 |
const NAME_RECHARGE_SETTING = 'recharge_setting'; //充值相关 |
|
28 |
const NAME_ORDER_FORM = 'order_form'; //商城下单表单 |
|
29 |
const NAME_TERRITORIAL_LIMITATION = 'territorial_limitation'; //区域允许购买 |
|
30 |
const NAME_OFFER_PRICE = 'offer_price'; // 起送规则 |
|
31 |
const NAME_WX_PLATFORM = 'wx_platform';//微信公众号配置 |
|
32 |
const NAME_WX_TEMPLATE = 'wx_template';//群发模版 |
|
33 |
const NAME_TUTORIAL = 'tutorial'; //教程管理 |
|
34 |
const NAME_SMS = 'sms';//短信配置 |
|
35 |
const NAME_SHARE_CUSTOMIZE = 'share_customize_data'; //分销自定义设置 |
|
36 |
const NAME_PERMISSIONS_STATUS = 'permissions_status';// 微擎子账号权限状态 |
|
37 |
const NAME_PERMISSIONS_LIST = 'permissions_list';// 微擎子账号权限自定义 |
|
38 |
const NAME_DELIVERY_DEFAULT_SENDER = 'delivery_default_sender'; //电子面单默认发件人信息 |
|
39 |
const NAME_POSTER = 'poster';// 商城海报配置 |
|
40 |
const NAME_IND_SETTING = 'ind_setting'; // 独立版设置 |
|
41 |
const NAME_APP_SHARE_SETTING = 'app_share_setting'; // 自定义分享 |
|
42 |
const NAME_CAT_STYLE_SETTING = 'cat_style_setting'; // 分类页面样式配置 |
|
43 |
const NAME_OVERRUN = 'overrun'; // 分类页面样式配置 |
|
44 |
const NAME_VERSION = 'version'; // 当前商城版本 |
|
45 |
const NAME_WX_TEMPLATE_TEST_USER = 'wx_template_test_user';//微信模板测试用户 |
|
46 |
const NAME_ALI_TEMPLATE_TEST_USER = 'ali_template_test_user';//支付宝模板测试用户 |
|
47 |
const NAME_BD_TEMPLATE_TEST_USER = 'bd_template_test_user';//百度模板测试用户 |
|
48 |
const NAME_TT_TEMPLATE_TEST_USER = 'tt_template_test_user';//头条模板测试用户 |
|
49 |
const NAME_RECOMMEND_SETTING = 'recommend_setting';//商品推荐设置 |
|
50 |
const NAME_FXHB_RECOMMEND_SETTING = 'fxhb_recommend_setting';//商品推荐设置 |
|
51 |
const NAME_ROLE_SETTING = 'role_setting';//员工管理基础设置 |
|
52 |
const NAME_IMPORT_ERROR_LOG = 'import_error_log';//商品导入错误数据 |
|
53 |
const NAME_IMPORT_CAT_ERROR_LOG = 'import_cat_error_log';//商品导入错误数据 |
|
54 |
const NAME_GLOBAL_PERMISSION = 'global_permission';// 独立版账户 全局权限设置 |
|
55 |
const NAME_POSTER_NEW = 'poster_new'; //商城海报新 |
|
56 |
const NAME_RECHARGE_PAGE = 'recharge_setting_page'; //充值页面自定义 |
|
57 |
const NAME_PAYMENT_PAY_TYPE = 'paymeny_pay_type'; //新的支付方式 |
|
58 |
|
|
59 |
/** |
|
60 |
* 多商户设置 |
|
61 |
*/ |
|
62 |
const NAME_MCH_MALL_SETTING = 'mch_mall_setting'; // 多商户设置 |
|
63 |
|
|
64 |
/** |
|
65 |
* {@inheritdoc} |
|
66 |
*/ |
|
67 |
public static function tableName() |
|
68 |
{ |
|
69 |
return '{{%option}}'; |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* {@inheritdoc} |
|
74 |
*/ |
|
75 |
public function rules() |
|
76 |
{ |
|
77 |
return [ |
|
78 |
[['mall_id', 'name', 'value', 'created_at', 'updated_at',], 'required'], |
|
79 |
[['mall_id', 'mch_id'], 'integer'], |
|
80 |
[['created_at', 'updated_at'], 'safe'], |
|
81 |
[['value'], 'string'], |
|
82 |
[['group', 'name'], 'string', 'max' => 255], |
|
83 |
]; |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* {@inheritdoc} |
|
88 |
*/ |
|
89 |
public function attributeLabels() |
|
90 |
{ |
|
91 |
return [ |
|
92 |
'id' => 'ID', |
|
93 |
'mall_id' => 'mall ID', |
|
94 |
'mch_id' => 'Mch ID', |
|
95 |
'group' => 'Group', |
|
96 |
'name' => 'Name', |
|
97 |
'value' => 'Value', |
|
98 |
'created_at' => 'Created At', |
|
99 |
'updated_at' => 'Updated At', |
|
100 |
]; |
|
101 |
} |
|
102 |
} |