public function getSpecificationLevelName($specificationid,&$path){
$specificationList = $this->commonLogic->getLogic('mkt_goods_specification');
foreach ($specificationList as $specification){
$name = $specification['specificationname'];
if($specificationid == $specification['specificationid']){
if($specification['pid'] !== 0){
$path = self::getSpecificationLevelName($specificationList[$specification['pid']]['specificationid'],$path);
}
$path[] = $name;
}
}
return $path;
}
$specificationArr = [];
$specificationArr = $this->getSpecificationLevelName($item['goodsspecificationid'],$specificationArr);