提交 f100e1d7 编写于 作者: G gongfuxiang

细节优化

上级 d98369d7
...@@ -859,7 +859,7 @@ class AppMiniService ...@@ -859,7 +859,7 @@ class AppMiniService
'plugins_terminal' => $params['terminal'], 'plugins_terminal' => $params['terminal'],
]; ];
$res = StoreService::PluginsUpgradeInfo($request_params); $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'); $res['data'] = array_column($res['data'], null, 'plugins');
} }
......
...@@ -465,7 +465,7 @@ class PluginsService ...@@ -465,7 +465,7 @@ class PluginsService
if(!empty($result) && isset($result['code']) && $result['code'] == 0) 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'); $result['data'] = array_column($result['data'], null, 'plugins');
} }
......
...@@ -462,7 +462,7 @@ class ThemeService ...@@ -462,7 +462,7 @@ class ThemeService
'plugins_data' => $data, 'plugins_data' => $data,
]; ];
$res = StoreService::PluginsUpgradeInfo($request_params); $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'); $res['data'] = array_column($res['data'], null, 'plugins');
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册