mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
细节优化
This commit is contained in:
parent
925e2d197c
commit
cfcd94cf96
5
.gitignore
vendored
5
.gitignore
vendored
@ -2,9 +2,10 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.ide
|
.ide
|
||||||
*.log
|
*.log
|
||||||
.env
|
*.lock
|
||||||
.tea
|
.tea
|
||||||
.idea
|
.idea
|
||||||
.htaccess
|
.env
|
||||||
|
*.htaccess
|
||||||
*payment_*_respond.php
|
*payment_*_respond.php
|
||||||
*payment_*_notify.php
|
*payment_*_notify.php
|
@ -10,7 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
use app\service\SqlconsoleService;
|
use app\service\SqlConsoleService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* sql控制台
|
* sql控制台
|
||||||
@ -68,7 +68,7 @@ class Sqlconsole extends Common
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 开始处理
|
// 开始处理
|
||||||
return SqlconsoleService::Implement($this->data_request);
|
return SqlConsoleService::Implement($this->data_request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@ -13,7 +13,7 @@ namespace app\service;
|
|||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
use app\service\PluginsService;
|
use app\service\PluginsService;
|
||||||
use app\service\ResourcesService;
|
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';
|
$uninstall_sql = APP_PATH.'plugins'.DS.$plugins.DS.'uninstall.sql';
|
||||||
if(file_exists($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';
|
$install_sql = APP_PATH.'plugins'.DS.$plugins.DS.'install.sql';
|
||||||
if(!empty($plugins) && file_exists($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);
|
$sql = file_get_contents($sql_file);
|
||||||
if(!empty($sql))
|
if(!empty($sql))
|
||||||
{
|
{
|
||||||
SqlconsoleService::Implement(['sql'=>$sql]);
|
SqlConsoleService::Implement(['sql'=>$sql]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ use think\facade\Db;
|
|||||||
* @version 0.0.1
|
* @version 0.0.1
|
||||||
* @datetime 2016-12-01T21:51:08+0800
|
* @datetime 2016-12-01T21:51:08+0800
|
||||||
*/
|
*/
|
||||||
class SqlconsoleService
|
class SqlConsoleService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* SQL执行
|
* SQL执行
|
@ -10,7 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace app\service;
|
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);
|
$file_content = zip_entry_read($temp_resource, $file_size);
|
||||||
if(!empty($file_content))
|
if(!empty($file_content))
|
||||||
{
|
{
|
||||||
SqlconsoleService::Implement(['sql'=>$file_content]);
|
SqlConsoleService::Implement(['sql'=>$file_content]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关闭目录项
|
// 关闭目录项
|
||||||
|
1
example.env
Normal file
1
example.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
APP_DEBUG = true
|
Loading…
Reference in New Issue
Block a user