Skip to content

Commit

Permalink
* [bug#52449,0.5h] check zbox bin file.
Browse files Browse the repository at this point in the history
  • Loading branch information
qixinzhi authored and fireware committed Jul 10, 2024
1 parent 9836f72 commit 33eaa3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/bi/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1573,8 +1573,9 @@ public function updateDownloadingTagFile(string $type = 'file', string $action =
$downloading = '.downloading';
$binRoot = $this->app->getTmpRoot() . 'duckdb' . DS;
$duckdbBin = $this->getDuckdbBinConfig();
$file = $binRoot . $duckdbBin[$type];
$tagFile = $file . $downloading;
$binFile = $binRoot . $duckdbBin[$type];
$zboxFile = $duckdbBin['path'] . $duckdbBin[$type];
$tagFile = $binFile . $downloading;

if($action == 'create')
{
Expand All @@ -1585,7 +1586,7 @@ public function updateDownloadingTagFile(string $type = 'file', string $action =

if($action == 'check')
{
if(file_exists($file)) return 'ok';
if(file_exists($binFile) || file_exists($zboxFile)) return 'ok';
if(file_exists($tagFile)) return 'loading';
return 'fail';
}
Expand Down

0 comments on commit 33eaa3e

Please sign in to comment.