shish 4 лет назад
Родитель
Сommit
8aeea4c367
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app-ghs/controllers/ProductController.php

+ 1 - 2
app-ghs/controllers/ProductController.php

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