|
...
|
...
|
@@ -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'];
|
|
|
|
}
|
...
|
...
|
|