初始化

This commit is contained in:
liut
2021-10-12 11:06:24 +08:00
commit ff0b4d5b12
1270 changed files with 405680 additions and 0 deletions
@@ -0,0 +1,46 @@
<?php
namespace app\common\model\driver;
abstract class PolicyStore
{
protected $info;
protected $policy;
protected $path;
public function __construct($info,$policy,$path)
{
$this->info = $info;
$this->policy = $policy;
$this->path = $path;
}
public function upload()
{
if(!empty($this->info['chunk']['chunks'])){
return $this->uploadPart();
}else{
return $this->uploadSimple();
}
}
public function uploadSimple()
{
return 0;
}
public function uploadPart()
{
return 0;
}
public function download($stores,$speed,$policy)
{
return 0;
}
}