修改index接口无需登录

This commit is contained in:
2025-05-11 16:46:19 +08:00
parent 6a5d81badc
commit 1bd66c30ba
3 changed files with 3 additions and 3 deletions

View File

@@ -14,8 +14,7 @@ use addons\shopro\service\order\OrderCreate;
class Activity extends Base class Activity extends Base
{ {
protected $noNeedLogin = ['index', 'test'];
protected $noNeedLogin = ['test'];
public function __construct() public function __construct()
{ {
$this->model = new \app\admin\model\zy\game\Activity; $this->model = new \app\admin\model\zy\game\Activity;

View File

@@ -10,7 +10,7 @@ use think\exception\ValidateException;
class Base extends Common class Base extends Common
{ {
protected $noNeedLogin = []; protected $noNeedLogin = ['index'];
protected $noNeedRight = ['*']; protected $noNeedRight = ['*'];
protected $model; protected $model;

View File

@@ -6,6 +6,7 @@ namespace addons\shopro\controller\zy;
class Gym extends Base class Gym extends Base
{ {
protected $noNeedRight = ['*'];
public function __construct() public function __construct()
{ {