|
@@ -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);
|