|
@@ -1313,7 +1313,7 @@ class ProductService extends Service
|
|
|
foreach ($data['data'] as $key => $value){
|
|
|
$arr = json_decode($value['product_category'], true);
|
|
|
$arr = array_flip($arr);
|
|
|
- if (isset($arr[ProductCategory::Special_for_roll])) {
|
|
|
+ if (isset($arr[ProductCategory::Special_for_roll1]) || isset($arr[ProductCategory::Special_for_roll2])) {
|
|
|
$data['data'][$key]['is_roll'] = true;
|
|
|
$is_roll = true;
|
|
|
}else{
|
|
@@ -1394,7 +1394,7 @@ class ProductService extends Service
|
|
|
$product[$key]['unit_title'] = $basic_map[$value['unit']] ?? "";
|
|
|
$arr = json_decode($value['product_category'], true);
|
|
|
$arr = array_flip($arr);
|
|
|
- if (isset($arr[ProductCategory::Special_for_roll])) {
|
|
|
+ if (isset($arr[ProductCategory::Special_for_roll1]) || isset($arr[ProductCategory::Special_for_roll2])) {
|
|
|
$product[$key]['is_roll'] = true;
|
|
|
}else{
|
|
|
$product[$key]['is_roll'] = false;
|