更新插件的前台默认的显示页面,控制器的 bool变量名称更新后可以正常显示。

This commit is contained in:
panx
2024-08-17 22:22:12 +08:00
parent c26870b8c5
commit f2b899bd0b
29 changed files with 699 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class Easyflow extends HomeController
/**
* 鉴权控制器
*/
public $needLogin = false;
public bool $needLogin = false;
/**

View File

@@ -0,0 +1,55 @@
<?php
declare (strict_types = 1);
// +----------------------------------------------------------------------
// | swiftAdmin 极速开发框架 [基于 WebMan 开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2099 http://www.swiftadmin.net
// +----------------------------------------------------------------------
// | swiftAdmin.net High Speed Development Framework
// +----------------------------------------------------------------------
// | Author: meystack <coolsec@foxmail.com> Apache2
// +----------------------------------------------------------------------
namespace app\index\controller;
use app\HomeController;
use support\Response;
/**
* 首页控制器
* <!--Partmanage-->
* Class Index
* @package app\index\controller
*/
class Partmanage extends HomeController
{
/**
* 鉴权控制器
*/
public bool $needLogin = false;
/**
* 非鉴权方法
* @var array
*/
public $noNeedAuth = ['index', 'home'];
// 初始化函数
public function __construct()
{
parent::__construct();
}
/**
* Partmanage 首页
* @return Response
* @throws InvalidArgumentException
*/
public function index(): Response
{
return response('Partmanage 前台首页模板');
}
}