更新店铺类型同步云商商品
This commit is contained in:
parent
f3ab67fc17
commit
cd87ffadf1
@ -25,6 +25,12 @@ class ProductCreate
|
||||
return false;
|
||||
}
|
||||
|
||||
// 根据支持同步到云商的商户进行同步操作
|
||||
$syncMerArray = Db::name('MerchantType')->where('is_sync_prod', 1)->column('mer_type_id');
|
||||
if (!in_array($merchant['type_id'], $syncMerArray)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//市级云仓
|
||||
$cityMerchant = Db::name('merchant')->where('status', 1)->where('mer_state', 1)->where('category_id', $merchant['category_id'])->where('type_id', $typePlatformId)->find();
|
||||
if ($cityMerchant) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user