获取开店分类配置项

This commit is contained in:
wangxiaowei 2024-11-20 14:32:55 +08:00
parent 72724da423
commit 7da55e8c1e

@ -8,6 +8,7 @@ use app\common\enum\ShopEnum;
use app\common\model\community\CommunityArticle;
use app\common\model\content\Article;
use app\common\model\DevRegion;
use app\common\model\distribution\DistributionStoreType;
use app\common\model\goods\Goods;
use app\common\enum\GoodsEnum;
use app\common\model\goods\GoodsSubsidy;
@ -865,6 +866,9 @@ class IndexLogic extends Logic
$center_top_bg = UrlServer::getFileUrl($center_top_bg);
}
// 开店类型
$scheme_store_type = DistributionStoreType::where(['is_delete' => 0])->order('sort desc')->field('id, title, money')->select();
$config = [
'shop_hide_goods' => ConfigServer::get('decoration', 'shop_hide_goods', 0), //商品详细是否显示店铺
'shop_street_hide' => ConfigServer::get('decoration', 'shop_street_hide', 0), //是否显示店铺街
@ -934,6 +938,8 @@ class IndexLogic extends Logic
'is_open_nearby' => ConfigServer::get('map', 'is_open_nearby',0),
// 种草社区,默认开启
'is_open_community' => ConfigServer::get('community', 'status', 1),
// 开店类型
'scheme_store_type' => $scheme_store_type
];
return $config;
}