|
@@ -467,8 +467,7 @@ class WebsiteService implements WebsiteServiceInterface
|
|
public function getWebsiteCategory(array $data): array
|
|
public function getWebsiteCategory(array $data): array
|
|
{
|
|
{
|
|
$where = [
|
|
$where = [
|
|
- 'website_id'=>$data['website_id'],
|
|
|
|
- 'pid'=>0
|
|
|
|
|
|
+ 'website_id'=>$data['website_id']
|
|
];
|
|
];
|
|
$result = WebsiteCategory::where($where)->orderBy('sort','asc')->get();
|
|
$result = WebsiteCategory::where($where)->orderBy('sort','asc')->get();
|
|
if(empty($result)){
|
|
if(empty($result)){
|