添加不需要登录过滤方法

This commit is contained in:
wangxiaowei 2024-09-02 16:18:51 +08:00
parent 3fc561bdcb
commit 7009d69eca
2 changed files with 3 additions and 1 deletions

@ -36,7 +36,7 @@ use think\facade\Db;
class Goods extends Api 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'];
/** /**
* 商品详情 * 商品详情

@ -8,6 +8,8 @@ use app\common\server\JsonServer;
class MallNews extends Api class MallNews extends Api
{ {
public $like_not_need_login = ['list'];
public function list() public function list()
{ {
if($this->request->isGet()) { if($this->request->isGet()) {