修改商品上架的错误
This commit is contained in:
parent
f3fbb46b49
commit
8d65a3566a
@ -28,6 +28,9 @@ class CloudProduct
|
||||
continue;
|
||||
}
|
||||
$cloudMerchant = Merchant::getDB()->where(['type_id' => Merchant::TypeCloudWarehouse, 'category_id' => $categoryId, 'status' => 1, 'mer_state' => 1])->value('mer_id');
|
||||
if (empty($cloudMerchant)) {
|
||||
continue;
|
||||
}
|
||||
$status = $product->isEnable() ? 1 : 0;
|
||||
$exist = $repo->get($product['product_id']);
|
||||
if (!$exist) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user