作者 lyh

gx

... ... @@ -111,7 +111,7 @@ class FileController
//查看文件是否存在
$fileModel = new File();
//查看图片是否已上传
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0];
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0,'is_ios'=>(($this->upload_location == 0) ? 1 : 0)];
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
$param['project_id'] = $this->cache['project_id'];
}
... ... @@ -223,7 +223,7 @@ class FileController
$fileModel = new File();
$name = $file->getClientOriginalName();
$hash = hash_file('md5', $file->getPathname());
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0];
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0,'is_ios'=>(($this->upload_location == 0) ? 1 : 0)];
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
$param['project_id'] = $this->cache['project_id'];
}
... ...
... ... @@ -185,7 +185,7 @@ class ImageController extends Controller
//查看文件是否存在
$imageModel = new ImageModel();
//查看图片是否已上传
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0];
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0,'is_ios'=>(($this->upload_location == 0) ? 1 : 0)];
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
$param['project_id'] = $this->cache['project_id'];
}
... ... @@ -268,7 +268,7 @@ class ImageController extends Controller
$hash = hash_file('md5', $file->getPathname());
$name = $file->getClientOriginalName();
//查看图片是否已上传
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0];
$param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0,'is_ios'=>(($this->upload_location == 0) ? 1 : 0)];
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
$param['project_id'] = $this->cache['project_id'];
}
... ...