mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化函数命名规则
This commit is contained in:
parent
c4ac54112b
commit
0654c7d9b4
@ -12,7 +12,7 @@
|
||||
* @return array 系统环境数据
|
||||
* @author jry <598821125@qq.com>
|
||||
*/
|
||||
function check_env(){
|
||||
function checkEnv(){
|
||||
$items = [
|
||||
'os' => [
|
||||
'title' => '操作系统',
|
||||
@ -64,7 +64,7 @@ function check_env(){
|
||||
* @return array 检测数据
|
||||
* @author jry <598821125@qq.com>
|
||||
*/
|
||||
function check_dirfile(){
|
||||
function checkDirFile(){
|
||||
$items = [
|
||||
'0' => [
|
||||
'type' => 'file',
|
||||
@ -117,7 +117,7 @@ function check_dirfile(){
|
||||
* 函数检测
|
||||
* @return array 检测数据
|
||||
*/
|
||||
function check_func_and_ext(){
|
||||
function checkFuncAndExt(){
|
||||
$items = [
|
||||
[
|
||||
'type' => 'ext',
|
||||
|
@ -26,13 +26,13 @@ class Index extends Controller {
|
||||
session('error', false);
|
||||
|
||||
//环境检测
|
||||
$this->assign('check_env', check_env());
|
||||
$this->assign('checkEnv', checkEnv());
|
||||
|
||||
//目录文件读写检测
|
||||
$this->assign('check_dirfile', check_dirfile());
|
||||
$this->assign('checkDirFile', checkDirFile());
|
||||
|
||||
//函数及扩展库检测
|
||||
$this->assign('check_func_and_ext', check_func_and_ext());
|
||||
$this->assign('checkFuncAndExt', checkFuncAndExt());
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{volist name="check_env" id="item"}
|
||||
{volist name="checkEnv" id="item"}
|
||||
<tr>
|
||||
<td>{$item['title']}</td>
|
||||
<td>{$item['limit']}</td>
|
||||
@ -40,7 +40,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{volist name="check_dirfile" id="item"}
|
||||
{volist name="checkDirFile" id="item"}
|
||||
<tr>
|
||||
<td>{$item['path']}</td>
|
||||
<td>可写</td>
|
||||
@ -58,7 +58,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{volist name="check_func_and_ext" id="item"}
|
||||
{volist name="checkFuncAndExt" id="item"}
|
||||
<tr>
|
||||
<td>{$item['name']}</td>
|
||||
<td><i class="{$item['icon']}"></i> {$item['title']}</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user