Răsfoiți Sursa

当前门店

shish 5 ani în urmă
părinte
comite
754ff70758
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app-ghs/controllers/ProductController.php

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

@@ -57,7 +57,7 @@ class ProductController extends BaseController
         $where['shopId'] = $shopId;
         $where['delStatus'] = 0;
 
-        $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC,'actualSold' => SORT_DESC], "*");
+        $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData);
         //常用的itemIds
         $oftenItemIds = [];
@@ -386,6 +386,7 @@ class ProductController extends BaseController
 
         $post['sjId'] = $this->sjId;
         $post['adminId'] = $this->adminId;
+        $post['shopId'] = $this->shopId;
         ProductClass::addProduct($post);
         util::complete('添加成功');
     }