|
|
@@ -684,6 +684,15 @@ class ProductController extends BaseController
|
|
|
$cost = bcsub($price, $addPrice, 2);
|
|
|
$post['cost'] = $cost;
|
|
|
$post['copy'] = 1; //复制标识
|
|
|
+
|
|
|
+ //去除无用的字段
|
|
|
+ unset($post['stock']); //库存去掉
|
|
|
+ unset($post['viewNum']);
|
|
|
+ unset($post['actualSold']);
|
|
|
+ unset($post['itemId']);
|
|
|
+ unset($post['id']);
|
|
|
+ unset($post['delStatus']);
|
|
|
+
|
|
|
ProductClass::addProduct($post);
|
|
|
util::complete('复制成功');
|
|
|
}
|