|
@@ -650,14 +650,13 @@ class ProductController extends BaseController
|
|
|
$post['copy'] = 1; //复制标识
|
|
$post['copy'] = 1; //复制标识
|
|
|
|
|
|
|
|
//去除无用的字段
|
|
//去除无用的字段
|
|
|
- unset($post['stock']); //库存去掉
|
|
|
|
|
unset($post['viewNum']);
|
|
unset($post['viewNum']);
|
|
|
unset($post['actualSold']);
|
|
unset($post['actualSold']);
|
|
|
unset($post['itemId']);
|
|
unset($post['itemId']);
|
|
|
unset($post['id']);
|
|
unset($post['id']);
|
|
|
unset($post['delStatus']);
|
|
unset($post['delStatus']);
|
|
|
|
|
|
|
|
- ProductClass::addProduct($post);
|
|
|
|
|
|
|
+ ProductClass::addProduct($post, $this->shop);
|
|
|
util::complete('复制成功');
|
|
util::complete('复制成功');
|
|
|
}
|
|
}
|
|
|
|
|
|