|
|
@@ -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);
|