Explorar el Código

wesmiler 网站地图

wesmiler hace 5 años
padre
commit
6c6e7dfab2
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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
      */
     public function sitemap(){
-        $result = [];
         $page = input('p', 1);
         $cacheKey = 'sitemap:list_';
         $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 = $dataList? $dataList->toArray() : [];
             $brands = JiamengService::getList([], "j.id,j.title, '2' as 'type'", 1000);