|
@@ -1431,7 +1431,8 @@ class NewsService implements NewsServiceInterface
|
|
|
$category = WebsiteCategory::where('category_id', $catid)->where('website_id', $data['website_id'])->first();
|
|
|
if (!empty($category->pid) && $category->pid != 0) {
|
|
|
$level = json_decode($category->category_arr_id);
|
|
|
- $pinyin = WebsiteCategory::whereIn('category_id', $level)
|
|
|
+ $pinyin = WebsiteCategory::where('website_id', $data['website_id'])
|
|
|
+ ->whereIn('category_id', $level)
|
|
|
->orderByRaw('FIELD(category_id, '. implode(',', $level). ')')
|
|
|
->get(['aLIas_pinyin'])
|
|
|
->pluck('aLIas_pinyin')
|