|
@ -45,7 +45,7 @@ class ExpressTemplate extends \yii\db\ActiveRecord |
|
|
public function rules() |
|
|
public function rules() |
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
[['name'], 'required'], |
|
|
|
|
|
|
|
|
[['name', 'calculation'], 'required'], |
|
|
[['province', 'city', 'area'], 'string'], |
|
|
[['province', 'city', 'area'], 'string'], |
|
|
[['calculation', 'basic_price', 'basic_amount', 'extra_price', 'extra_amount'], 'integer'], |
|
|
[['calculation', 'basic_price', 'basic_amount', 'extra_price', 'extra_amount'], 'integer'], |
|
|
[['name'], 'string', 'max' => 255], |
|
|
[['name'], 'string', 'max' => 255], |
|
|