Browse Source

删除运费模板model中的无用字段

antshop
linyaostalker 5 years ago
parent
commit
ea705c35bb
  1. 18
      backend/modules/shop/models/ars/ExpressTemplate.php

18
backend/modules/shop/models/ars/ExpressTemplate.php

@ -10,15 +10,8 @@ use yii\behaviors\TimestampBehavior;
*
* @property int $id
* @property string $name 名称
* @property string $province 省份
* @property string $city 城市
* @property string $area 区域
* @property int $extra_price 续重运费
* @property int $updated_at 更新时间
* @property int $created_at 创建时间
* @property int $basic_price 基本运费
* @property int $basic_count 基本数量
* @property int $extra_count 续重数量
* @property int $calculation_type 计算方式
*/
class ExpressTemplate extends \yii\db\ActiveRecord
@ -46,10 +39,8 @@ class ExpressTemplate extends \yii\db\ActiveRecord
{
return [
[['name'], 'required'],
[['province', 'city', 'area'], 'string'],
[['calculation_type'], 'integer'],
[['name'], 'string', 'max' => 255],
[['extra_price', 'basic_price', 'basic_count', 'extra_count'], 'safe']
[['name'], 'string', 'max' => 255]
];
}
@ -61,15 +52,8 @@ class ExpressTemplate extends \yii\db\ActiveRecord
return [
'id' => 'id',
'name' => '名称',
'province' => '省份',
'city' => '城市',
'area' => '区域',
'extra_price' => '续重运费',
'updated_at' => '更新时间',
'created_at' => '创建时间',
'basic_price' => '基本运费',
'basic_count' => '基本数量',
'extra_count' => '续重数量',
'calculation_type' => '计算方式',
];
}

Loading…
Cancel
Save