修改index接口无需登录
This commit is contained in:
@@ -14,8 +14,7 @@ use addons\shopro\service\order\OrderCreate;
|
||||
|
||||
class Activity extends Base
|
||||
{
|
||||
|
||||
protected $noNeedLogin = ['test'];
|
||||
protected $noNeedLogin = ['index', 'test'];
|
||||
public function __construct()
|
||||
{
|
||||
$this->model = new \app\admin\model\zy\game\Activity;
|
||||
|
||||
@@ -10,7 +10,7 @@ use think\exception\ValidateException;
|
||||
|
||||
class Base extends Common
|
||||
{
|
||||
protected $noNeedLogin = [];
|
||||
protected $noNeedLogin = ['index'];
|
||||
protected $noNeedRight = ['*'];
|
||||
|
||||
protected $model;
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace addons\shopro\controller\zy;
|
||||
|
||||
class Gym extends Base
|
||||
{
|
||||
protected $noNeedRight = ['*'];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user