feat(StoreProductLogic): updated logic for product type 5, added sales condition, improved code quality
This commit is contained in:
parent
c1a107886d
commit
19be49f0d5
@ -91,7 +91,9 @@ class StoreProductLogic extends BaseLogic
|
|||||||
'sales' => 0,
|
'sales' => 0,
|
||||||
]);
|
]);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
|
if($data['product_type']==5){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if ($params['is_store_all'] == 1) {
|
if ($params['is_store_all'] == 1) {
|
||||||
$store_arr = SystemStore::where('is_show', 1)->column('id');
|
$store_arr = SystemStore::where('is_show', 1)->column('id');
|
||||||
foreach ($store_arr as $store_id) {
|
foreach ($store_arr as $store_id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user