应用中心开发

feat/task1-c-wallet
devil_gong 2019-03-22 17:10:43 +08:00
parent 85dab636bd
commit 9c18966ebb
2 changed files with 14 additions and 1 deletions

View File

@ -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('安装成功');
}
}

View File

@ -15,7 +15,7 @@
return [
// 开发模式
'is_develop' => false,
'is_develop' => true,
// 默认编码
'default_charset' => 'utf-8',