清除多余字段

dev
曾超新 5 years ago
parent d703b7c4b5
commit ed10240b00
  1. 14
      common/models/CarT.php

@ -24,11 +24,8 @@ use Yii;
* @property integer $seats
* @property string $car_man
* @property string $car_man_phone
* @property string $weixin
* @property string $remark
* @property integer $location
* @property integer $invalid_flag
* @property integer $invalid_id
* @property string $print_date
* @property string $car_man_number
* @property integer $is_track
@ -59,11 +56,11 @@ class CarT extends \common\models\Base
{
return [
[['user_id'], 'required'],
[['user_id', 'car_type_id', 'car_use_id','seats','location','invalid_id','invalid_flag','is_track','times','biaozhu','hiddenes'], 'integer'],
[['user_id', 'car_type_id', 'car_use_id','seats','location','op1_id', 'op2_id'], 'integer'],
[['register_date', 'insurer1_date', 'insurer2_date','id_man','id_number','print_date','car_man_number', 'created_at', 'updated_at'], 'safe'],
[['car_no', 'factory_model', 'car_model', 'engine_no', 'car_frame_no','old_user','phone1','id_phone'], 'string', 'max' => 50],
[['car_no', 'factory_model', 'car_model', 'engine_no', 'car_frame_no','id_man_phone'], 'string', 'max' => 50],
[['car_year'], 'string', 'max' => 10],
[['car_man','phone','remark','company','op_user1','op_user2','op_user3','weixin','from_src'], 'string', 'max' => 200],
[['car_man','car_man_phone','remark','company','op_user1','op_user2','weixin','from_src'], 'string', 'max' => 200],
];
}
@ -89,12 +86,9 @@ class CarT extends \common\models\Base
'car_frame_no' => 'Car Frame No',
'seats' => 'Seats',
'car_man' => 'Car Man',
'phone' => 'Phone',
'weixin' => 'Weixin',
'car_man_phone' => 'Phone',
'remark' => 'Remark',
'location' => 'Location',
'invalid_flag' => 'Invalid Flag',
'invalid_id' => 'Invalid ID',
'print_date' => 'Print Date',
'car_man_number' => 'Car Man Number',
'is_track' => 'Is Track',

Loading…
Cancel
Save