Skip to content

Commit

Permalink
修复php7+升级解压缩问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
magicblack committed Jun 27, 2021
1 parent 76fd438 commit 9ddffdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/tpl/module/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ function_exists(@dom_import_simplexml) ? $ok : $err,
$url = base64_decode('aHR0cDovL3VwZGF0ZS5tYWNjbXMubGEvdjgv');
$f = !empty($p['file']) ? $p['file'] : MAC_VERSION;
$url .= $f.'.zip';
//$html = getPage($url,'utf-8');
$html = getPage($url,'utf-8');
$path = 'bak/'.MAC_VERSION.'.zip';
//@fwrite(@fopen($path,'wb'),$html);
@fwrite(@fopen($path,'wb'),$html);

echo "下载升级包完毕...\n";
ob_flush();flush();
Expand Down

0 comments on commit 9ddffdc

Please sign in to comment.