Skip to content

Commit 33eaa3e

Browse files
qixinzhifireware
qixinzhi
authored andcommitted
* [bug#52449,0.5h] check zbox bin file.
1 parent 9836f72 commit 33eaa3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

module/bi/model.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1573,8 +1573,9 @@ public function updateDownloadingTagFile(string $type = 'file', string $action =
15731573
$downloading = '.downloading';
15741574
$binRoot = $this->app->getTmpRoot() . 'duckdb' . DS;
15751575
$duckdbBin = $this->getDuckdbBinConfig();
1576-
$file = $binRoot . $duckdbBin[$type];
1577-
$tagFile = $file . $downloading;
1576+
$binFile = $binRoot . $duckdbBin[$type];
1577+
$zboxFile = $duckdbBin['path'] . $duckdbBin[$type];
1578+
$tagFile = $binFile . $downloading;
15781579

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

15861587
if($action == 'check')
15871588
{
1588-
if(file_exists($file)) return 'ok';
1589+
if(file_exists($binFile) || file_exists($zboxFile)) return 'ok';
15891590
if(file_exists($tagFile)) return 'loading';
15901591
return 'fail';
15911592
}

0 commit comments

Comments
 (0)