diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index e7a1cab53..6edd74411 100755 --- a/application/service/PluginsAdminService.php +++ b/application/service/PluginsAdminService.php @@ -961,6 +961,19 @@ php; } } } + + // sql运行 + $install_sql = APP_PATH.'plugins'.DS.$plugins_name.DS.'install.sql'; + if(!empty($plugins_name) && file_exists($install_sql)) + { + // 开始处理 + $ret = SqlconsoleService::Implement(['sql'=>file_get_contents($install_sql)]); + if($ret['code'] != 0) + { + return $ret; + } + } + return DataReturn('安装成功'); } } diff --git a/config/shopxo.php b/config/shopxo.php index 3912d471c..1df505894 100755 --- a/config/shopxo.php +++ b/config/shopxo.php @@ -15,7 +15,7 @@ return [ // 开发模式 - 'is_develop' => false, + 'is_develop' => true, // 默认编码 'default_charset' => 'utf-8',