shish %!s(int64=4) %!d(string=hai) anos
pai
achega
8aeea4c367
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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; //复制标识
         $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('复制成功');
     }
     }