feat(StoreProductLogic): updated logic for product type 5, added sales condition, improved code quality

This commit is contained in:
mkm 2024-09-17 10:20:43 +08:00
parent c1a107886d
commit 19be49f0d5

View File

@ -91,7 +91,9 @@ class StoreProductLogic extends BaseLogic
'sales' => 0,
]);
Db::commit();
if($data['product_type']==5){
return true;
}
if ($params['is_store_all'] == 1) {
$store_arr = SystemStore::where('is_show', 1)->column('id');
foreach ($store_arr as $store_id) {