shish il y a 2 ans
Parent
commit
3e046333eb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app-mall/controllers/MainController.php

+ 1 - 1
app-mall/controllers/MainController.php

@@ -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,