no message
This commit is contained in:
parent
5181010d22
commit
fa8c209ea3
@ -237,8 +237,12 @@ class SystemController extends AbstractController
|
||||
'list' => [],
|
||||
];
|
||||
//
|
||||
$file = base_path("electron/package.json");
|
||||
$files = [
|
||||
base_path("package.json"),
|
||||
base_path("electron/package.json")
|
||||
];
|
||||
$dist = base_path("electron/dist");
|
||||
foreach ($files as $file) {
|
||||
if (file_exists($file)) {
|
||||
$packageArray = json_decode(file_get_contents($file), true);
|
||||
$array['name'] = $packageArray['name'] ?? 'No app';
|
||||
@ -269,6 +273,10 @@ class SystemController extends AbstractController
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count($array['list']) > 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
//
|
||||
if (count($array['list']) == 0) {
|
||||
return Base::retError('No file');
|
||||
|
Loading…
x
Reference in New Issue
Block a user