|
|
@ -69,7 +69,7 @@ class Goods extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['pid', 'cat_id', 'brand_id', 'shop_cat_id', 'supplier_id', 'weight', 'length', 'width', 'height', 'diameter', 'sold_count', 'limit_count', 'stock', 'stock_warn', 'market_price', 'price', 'image', 'model_id', 'is_sale', 'sort_order', 'bouns_points', 'experience_points', 'is_delete', 'express_template'], 'integer'], |
|
|
|
[['cat_id', 'brand_id', 'shop_cat_id', 'name', 'sn'], 'required'], |
|
|
|
[['cat_id', 'brand_id', 'shop_cat_id', 'name'], 'required'], |
|
|
|
[['sn'], 'checkExist'], |
|
|
|
[['description'], 'string'], |
|
|
|
[['name'], 'string', 'max' => 120], |
|
|
|