添加不需要登录过滤方法

This commit is contained in:
wangxiaowei 2024-09-02 16:47:29 +08:00
parent 6376653609
commit 206935faaf
2 changed files with 3 additions and 2 deletions

@ -17,7 +17,7 @@ use weixin\Getopenid;
class Index extends Api
{
public $like_not_need_login = ['index', 'indexCategory', 'config', 'copyright', 'city', 'geocoder'];
public $like_not_need_login = ['index', 'indexCategory', 'config', 'copyright', 'city', 'geocoder', 'setHome'];
// 首页
public function index()

@ -15,7 +15,8 @@ use app\api\validate\LocalStoreGoodsValidate;
class LocalStore extends Api
{
// public $like_not_need_login = ['makeMyPayImage'];
public $like_not_need_login = ['getLocalList'];
public function getLocalStore()
{
$id = $this->request->post('id');