移除 冗余值
This commit is contained in:
parent
65902b95bd
commit
3b50f77513
@ -8,6 +8,8 @@
|
||||
|
||||
class Test extends Command
|
||||
{
|
||||
// 测试用的
|
||||
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
@ -102,15 +104,13 @@ public function handle(): int
|
||||
// 判断是否下载完毕
|
||||
if ($downloaded_size >= $total_size) {
|
||||
break;
|
||||
|
||||
echo 'download complete';
|
||||
}
|
||||
|
||||
// download progress
|
||||
echo 'downloaded: '.$downloaded_size.' of '.$total_size.' bytes'.PHP_EOL;
|
||||
} else {
|
||||
echo 'server not support range download'.PHP_EOL;
|
||||
exit;
|
||||
// exit;
|
||||
|
||||
// stream download
|
||||
$fp = fopen('download.bin', 'w');
|
||||
|
Loading…
Reference in New Issue
Block a user