wesmiler 5 роки тому
батько
коміт
6c6e7dfab2
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      app/index/controller/IndexController.php

+ 1 - 2
app/index/controller/IndexController.php

@@ -238,11 +238,10 @@ class IndexController extends HomeBaseController
      * @throws \think\exception\DbException
      * @throws \think\exception\DbException
      */
      */
     public function sitemap(){
     public function sitemap(){
-        $result = [];
         $page = input('p', 1);
         $page = input('p', 1);
         $cacheKey = 'sitemap:list_';
         $cacheKey = 'sitemap:list_';
         $datas = RedisService::get($cacheKey.$page);
         $datas = RedisService::get($cacheKey.$page);
-        if(empty($datas) || 1){
+        if(empty($datas)){
             $dataList = CategoryService::getCates(500, -1, "enname as id, catname as title, '1' as 'type'");
             $dataList = CategoryService::getCates(500, -1, "enname as id, catname as title, '1' as 'type'");
             $dataList = $dataList? $dataList->toArray() : [];
             $dataList = $dataList? $dataList->toArray() : [];
             $brands = JiamengService::getList([], "j.id,j.title, '2' as 'type'", 1000);
             $brands = JiamengService::getList([], "j.id,j.title, '2' as 'type'", 1000);