From 7009d69eca70e09f53c14255745fb3f47e73f5ac Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 2 Sep 2024 16:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=BF=87=E6=BB=A4=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Goods.php | 2 +- app/api/controller/MallNews.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Goods.php b/app/api/controller/Goods.php index ec69e6c8..471e3912 100755 --- a/app/api/controller/Goods.php +++ b/app/api/controller/Goods.php @@ -36,7 +36,7 @@ use think\facade\Db; class Goods extends Api { - public $like_not_need_login = ['getGoodsDetail', 'getHotList', 'getGoodsList', 'getGoodsListTemplate', 'getGoodsListByColumnId', 'newGoods']; + public $like_not_need_login = ['getGoodsDetail', 'getHotList', 'getGoodsList', 'getGoodsListTemplate', 'getGoodsListByColumnId', 'hotList','newGoods']; /** * 商品详情 diff --git a/app/api/controller/MallNews.php b/app/api/controller/MallNews.php index 09312a63..e9087623 100755 --- a/app/api/controller/MallNews.php +++ b/app/api/controller/MallNews.php @@ -8,6 +8,8 @@ use app\common\server\JsonServer; class MallNews extends Api { + public $like_not_need_login = ['list']; + public function list() { if($this->request->isGet()) {