You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
5 years ago
|
<?php
|
||
|
|
||
|
namespace app\models;
|
||
|
|
||
|
use Yii;
|
||
|
|
||
|
/**
|
||
|
* This is the model class for table "{{%ms_setting}}".
|
||
|
*
|
||
|
* @property string $store_id
|
||
|
* @property string $unpaid
|
||
|
* @property integer $is_share
|
||
|
* @property integer $is_sms
|
||
|
* @property integer $is_print
|
||
|
* @property integer $is_mail
|
||
|
* @property integer $is_area
|
||
|
*/
|
||
|
class MsSetting extends \yii\db\ActiveRecord
|
||
|
{
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public static function tableName()
|
||
|
{
|
||
|
return '{{%ms_setting}}';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function rules()
|
||
|
{
|
||
|
return [
|
||
|
[['store_id'], 'required'],
|
||
|
[['store_id', 'unpaid', 'is_share', 'is_sms', 'is_print', 'is_mail','is_area'], 'integer'],
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function attributeLabels()
|
||
|
{
|
||
|
return [
|
||
|
'store_id' => 'Store ID',
|
||
|
'unpaid' => '未付款自动取消时间',
|
||
|
'is_share' => '是否开启分销 0--关闭 1--开启',
|
||
|
'is_sms' => '是否开启短信通知',
|
||
|
'is_print' => '是否开启订单打印',
|
||
|
'is_mail' => '是否开启邮件通知',
|
||
|
'is_area' => '是否开启区域限制购买',
|
||
|
];
|
||
|
}
|
||
|
}
|