|
@@ -115,7 +115,7 @@ class Goods extends Common
|
|
|
$params = $this->request->only([
|
|
|
'type', 'title', 'subtitle', 'category_ids', 'image', 'images', 'image_wh', 'params',
|
|
|
'original_price', 'price', 'is_sku', 'limit_type', 'limit_num', 'sales_show_type',
|
|
|
- 'stock_show_type', 'show_sales','bean_rate', 'service_ids', 'dispatch_type', 'dispatch_id', 'is_offline','yushou', 'status', 'weigh',
|
|
|
+ 'stock_show_type', 'show_sales','bean_rate','back_rate', 'service_ids', 'dispatch_type', 'dispatch_id', 'is_offline','yushou', 'status', 'weigh',
|
|
|
]); // likes, views, sales,
|
|
|
$params['content'] = $this->request->param('content', '', null); // content 不经过全局过滤
|
|
|
$this->svalidate($params, ".add");
|
|
@@ -183,7 +183,7 @@ class Goods extends Common
|
|
|
$params = $this->request->only([
|
|
|
'type', 'title', 'subtitle', 'image', 'images', 'image_wh', 'params',
|
|
|
'original_price', 'price', 'is_sku', 'limit_type', 'limit_num', 'sales_show_type',
|
|
|
- 'stock_show_type', 'show_sales','bean_rate', 'service_ids', 'dispatch_type', 'dispatch_id', 'is_offline', 'yushou', 'status', 'weigh',
|
|
|
+ 'stock_show_type', 'show_sales','bean_rate','back_rate', 'service_ids', 'dispatch_type', 'dispatch_id', 'is_offline', 'yushou', 'status', 'weigh',
|
|
|
]); // likes, views, sales,
|
|
|
$this->request->has('content') && $params['content'] = $this->request->param('content', '', null); // content 不经过全局过滤
|
|
|
$this->svalidate($params);
|