From 4db13181cb4ffcc7b33a47bde6600f47c5e53a49 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 16 Dec 2024 16:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B9=B3=E5=8F=B0=E5=95=86=E5=93=81=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/setting/BasicLogic.php | 2 ++ app/admin/view/setting/basic/website_base.html | 15 ++++++++++++++- app/api/logic/GoodsLogic.php | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/admin/logic/setting/BasicLogic.php b/app/admin/logic/setting/BasicLogic.php index 0c098707..3f8bdec2 100755 --- a/app/admin/logic/setting/BasicLogic.php +++ b/app/admin/logic/setting/BasicLogic.php @@ -24,6 +24,7 @@ class BasicLogic extends Logic { $config = [ 'file_url' => UrlServer::getFileUrl('/'), + 'platform_shop_note' => ConfigServer::get('website', 'platform_shop_note'), 'name' => ConfigServer::get('website', 'name'), 'mini_notice' => ConfigServer::get('website', 'mini_notice'), 'show_mini_notice' => ConfigServer::get('website', 'show_mini_notice'), @@ -70,6 +71,7 @@ class BasicLogic extends Logic */ public static function setWebsiteBasic($post) { + ConfigServer::set('website', 'platform_shop_note', $post['platform_shop_note']); ConfigServer::set('website', 'name', $post['name']); ConfigServer::set('website', 'mini_notice', $post['mini_notice']); ConfigServer::set('website', 'show_mini_notice', $post['show_mini_notice']); diff --git a/app/admin/view/setting/basic/website_base.html b/app/admin/view/setting/basic/website_base.html index 8becdef7..e2b6e7cd 100755 --- a/app/admin/view/setting/basic/website_base.html +++ b/app/admin/view/setting/basic/website_base.html @@ -11,7 +11,20 @@ - + + +
+ +
+
+
+ +
+
+
+
+
diff --git a/app/api/logic/GoodsLogic.php b/app/api/logic/GoodsLogic.php index 5ba70a03..38134ec6 100755 --- a/app/api/logic/GoodsLogic.php +++ b/app/api/logic/GoodsLogic.php @@ -346,6 +346,8 @@ class GoodsLogic extends Logic // 虚拟浏览量 $goodsDetailArr['clicks'] += $goodsDetailArr['clicks_virtual']; + $goodsDetailArr['platform_shop_note']= ConfigServer::get('website', 'platform_shop_note');//平台商品备注 + // 记录访问足迹 event('Footprint', [ 'type' => FootprintEnum::BROWSE_GOODS,