|
@@ -51,13 +51,13 @@ class DecorateThemeLogic
|
|
|
//读取缓存
|
|
//读取缓存
|
|
|
$HandleConcurrencyCache = new HandleConcurrencyCache();
|
|
$HandleConcurrencyCache = new HandleConcurrencyCache();
|
|
|
$homePage = $HandleConcurrencyCache->getCache($HandleConcurrencyCache->getDecorateThemeHomeKey());
|
|
$homePage = $HandleConcurrencyCache->getCache($HandleConcurrencyCache->getDecorateThemeHomeKey());
|
|
|
-// if (!$homePage) {
|
|
|
|
|
-// $homePage = DecorateThemePage::where(['is_home' => 1])
|
|
|
|
|
-// ->field('id,content,common')
|
|
|
|
|
-// ->find()->toArray();
|
|
|
|
|
-// //设置缓存
|
|
|
|
|
-// $HandleConcurrencyCache->setCache($HandleConcurrencyCache->getDecorateThemeHomeKey(),$homePage);
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (!$homePage) {
|
|
|
|
|
+ $homePage = DecorateThemePage::where(['is_home' => 1])
|
|
|
|
|
+ ->field('id,content,common')
|
|
|
|
|
+ ->find()->toArray();
|
|
|
|
|
+ //设置缓存
|
|
|
|
|
+ $HandleConcurrencyCache->setCache($HandleConcurrencyCache->getDecorateThemeHomeKey(),$homePage);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//替换组件内容
|
|
//替换组件内容
|
|
|
$config = $this->getMenuConfig($userId);
|
|
$config = $this->getMenuConfig($userId);
|