细节优化

This commit is contained in:
Devil 2021-07-24 22:25:00 +08:00
parent 925e2d197c
commit cfcd94cf96
6 changed files with 13 additions and 11 deletions

5
.gitignore vendored
View File

@ -2,9 +2,10 @@
.DS_Store
.ide
*.log
.env
*.lock
.tea
.idea
.htaccess
.env
*.htaccess
*payment_*_respond.php
*payment_*_notify.php

View File

@ -10,7 +10,7 @@
// +----------------------------------------------------------------------
namespace app\admin\controller;
use app\service\SqlconsoleService;
use app\service\SqlConsoleService;
/**
* sql控制台
@ -68,7 +68,7 @@ class Sqlconsole extends Common
}
// 开始处理
return SqlconsoleService::Implement($this->data_request);
return SqlConsoleService::Implement($this->data_request);
}
}
?>

View File

@ -13,7 +13,7 @@ namespace app\service;
use think\facade\Db;
use app\service\PluginsService;
use app\service\ResourcesService;
use app\service\SqlconsoleService;
use app\service\SqlConsoleService;
/**
* 应用管理服务层
@ -436,7 +436,7 @@ class PluginsAdminService
$uninstall_sql = APP_PATH.'plugins'.DS.$plugins.DS.'uninstall.sql';
if(file_exists($uninstall_sql))
{
SqlconsoleService::Implement(['sql'=>file_get_contents($uninstall_sql)]);
SqlConsoleService::Implement(['sql'=>file_get_contents($uninstall_sql)]);
}
}
@ -1033,7 +1033,7 @@ php;
$install_sql = APP_PATH.'plugins'.DS.$plugins.DS.'install.sql';
if(!empty($plugins) && file_exists($install_sql))
{
SqlconsoleService::Implement(['sql'=>file_get_contents($install_sql)]);
SqlConsoleService::Implement(['sql'=>file_get_contents($install_sql)]);
}
// 插件事件回调
@ -1430,7 +1430,7 @@ php;
$sql = file_get_contents($sql_file);
if(!empty($sql))
{
SqlconsoleService::Implement(['sql'=>$sql]);
SqlConsoleService::Implement(['sql'=>$sql]);
}
}

View File

@ -19,7 +19,7 @@ use think\facade\Db;
* @version 0.0.1
* @datetime 2016-12-01T21:51:08+0800
*/
class SqlconsoleService
class SqlConsoleService
{
/**
* SQL执行

View File

@ -10,7 +10,7 @@
// +----------------------------------------------------------------------
namespace app\service;
use app\service\SqlconsoleService;
use app\service\SqlConsoleService;
/**
* 系统更新服务层
@ -164,7 +164,7 @@ class SystemUpgradeService
$file_content = zip_entry_read($temp_resource, $file_size);
if(!empty($file_content))
{
SqlconsoleService::Implement(['sql'=>$file_content]);
SqlConsoleService::Implement(['sql'=>$file_content]);
}
// 关闭目录项

1
example.env Normal file
View File

@ -0,0 +1 @@
APP_DEBUG = true