Sfoglia il codice sorgente

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

shizhongqi 4 mesi fa
parent
commit
39434a940a
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app-hd/controllers/ItemController.php

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

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