bug fix in explore commodity
This commit is contained in:
parent
381b43e476
commit
a2925b51cb
|
@ -214,11 +214,14 @@ class Explore
|
|||
'name' => $item->getUnit()->getName(),
|
||||
'floatNumber' => $item->getUnit()->getFloatNumber(),
|
||||
],
|
||||
'cat'=>$item->getCat()->getName()
|
||||
];
|
||||
if ($des) {
|
||||
$result['des'] = $des;
|
||||
}
|
||||
$result['cat'] = '';
|
||||
if ($item->getCat()) {
|
||||
$result['cat'] = $item->getCat()->getName();
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue