|
|
@@ -771,8 +771,11 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
});
|
|
|
} else {
|
|
|
$pidMap = $pidResults->keyBy('pid');
|
|
|
- $result->each(function ($record) use ($pidMap) {
|
|
|
- $record->aLIas_pinyin = $record->path;
|
|
|
+ $result->each(function ($record) use ($pidMap,$data) {
|
|
|
+ if($data['pid'] == 0){
|
|
|
+ $record->aLIas_pinyin = $record->path;
|
|
|
+ }
|
|
|
+ // $record->aLIas_pinyin = $record->path;
|
|
|
if ($pidMap->has($record->category_id)) {
|
|
|
$pidResult = $pidMap->get($record->category_id);
|
|
|
$record->chilid_id = $pidResult->category_id;
|