应用管理

feat/task1-c-wallet
gongfuxiang 2019-05-12 14:29:31 +08:00
parent 830ab11676
commit 4603845f87
1 changed files with 7 additions and 0 deletions

View File

@ -819,6 +819,13 @@ php;
*/
private static function PluginsExistInsert($params, $plugins)
{
// 是否非使用的名称
if(in_array($plugins, ['view', 'shopxo']))
{
return DataReturn('不能使用限制的名称['.$plugins.']', -1);
}
// 应用是否存在
$temp_plugins = Db::name('Plugins')->where(['plugins'=>$plugins])->value('plugins');
if(empty($temp_plugins))
{