Эх сурвалжийг харах

零售(app-hd)清空单个客户的已购修改

shizhongqi 5 сар өмнө
parent
commit
39434a940a

+ 2 - 2
app-hd/controllers/ItemController.php

@@ -479,11 +479,11 @@ class ItemController extends BaseController
         if ($item->mainId != $this->mainId) {
         if ($item->mainId != $this->mainId) {
             util::fail('不是你的花材');
             util::fail('不是你的花材');
         }
         }
-        $custom = \bizGhs\custom\classes\CustomClass::getById($customId, true);
+        $custom = CustomClass::getById($customId, true);
         if (empty($custom)) {
         if (empty($custom)) {
             util::fail('没有客户');
             util::fail('没有客户');
         }
         }
-        if ($custom->ownMainId != $this->mainId) {
+        if ($custom->shopId != $this->shopId) {
             util::fail('不是你的客户');
             util::fail('不是你的客户');
         }
         }
         ProductClass::baseClearLimitBuy($productId, $customId);
         ProductClass::baseClearLimitBuy($productId, $customId);