mirror of
https://github.com/flucont/btcloud.git
synced 2025-01-22 20:58:14 -05:00
update
This commit is contained in:
parent
4c05974f09
commit
99f9a28a73
@ -36,9 +36,11 @@ class BtPlugins
|
||||
if(empty($result['list']) || empty($result['type'])){
|
||||
throw new Exception('获取插件列表失败:插件列表为空');
|
||||
}
|
||||
foreach($result['list'] as $k=>$v){
|
||||
if(in_array($v['name'], self::$block_plugins)) unset($result['list'][$k]);
|
||||
$newlist = [];
|
||||
foreach($result['list'] as $item){
|
||||
if(!in_array($item['name'], self::$block_plugins)) $newlist[] = $item;
|
||||
}
|
||||
$result['list'] = $newlist;
|
||||
return $result;
|
||||
}else{
|
||||
throw new Exception('获取插件列表失败:'.(isset($result['msg'])?$result['msg']:'面板连接失败'));
|
||||
|
Loading…
Reference in New Issue
Block a user