|
|
@@ -1370,7 +1370,7 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
|
|
|
$shopAdmin = $this->shopAdmin;
|
|
|
- if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
+ if (!isset($shopAdmin->super) || $shopAdmin->super != 1) {
|
|
|
util::fail('管理员才能添加花材');
|
|
|
}
|
|
|
$post['sjId'] = $this->sjId;
|
|
|
@@ -1481,6 +1481,7 @@ class ProductController extends BaseController
|
|
|
unset($post['itemId']);
|
|
|
unset($post['id']);
|
|
|
unset($post['delStatus']);
|
|
|
+ unset($post['variety']);
|
|
|
|
|
|
ProductClass::addProduct($post, $this->shop);
|
|
|
util::complete('复制成功');
|