|
|
@@ -24,7 +24,7 @@ class MainController extends BaseController
|
|
|
$shop = $this->shop;
|
|
|
$category = CategoryService::getTopThreeCategory($this->mainId);
|
|
|
$categoryList = !empty($category) ? GoodsCategoryService::getAppointCategoryList($category, $shop) : [];
|
|
|
- $sj = $this->sj->attributes;
|
|
|
+ $sj = isset($this->sj) ? $this->sj->attributes : [];
|
|
|
$data = [
|
|
|
'ad' => $ad,
|
|
|
'category' => $categoryList,
|