细节优化
parent
d98369d7fd
commit
f100e1d7a6
|
|
@ -859,7 +859,7 @@ class AppMiniService
|
|||
'plugins_terminal' => $params['terminal'],
|
||||
];
|
||||
$res = StoreService::PluginsUpgradeInfo($request_params);
|
||||
if(!empty($res['data']))
|
||||
if(!empty($res['data']) && is_array($res['data']))
|
||||
{
|
||||
$res['data'] = array_column($res['data'], null, 'plugins');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ class PluginsService
|
|||
if(!empty($result) && isset($result['code']) && $result['code'] == 0)
|
||||
{
|
||||
// 处理存在更新的插件数据
|
||||
if(!empty($result['data']))
|
||||
if(!empty($result['data']) && is_array($result['data']))
|
||||
{
|
||||
$result['data'] = array_column($result['data'], null, 'plugins');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -462,7 +462,7 @@ class ThemeService
|
|||
'plugins_data' => $data,
|
||||
];
|
||||
$res = StoreService::PluginsUpgradeInfo($request_params);
|
||||
if(!empty($res['data']))
|
||||
if(!empty($res['data']) && is_array($res['data']))
|
||||
{
|
||||
$res['data'] = array_column($res['data'], null, 'plugins');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue