|
@@ -185,7 +185,7 @@ class ImageController extends Controller |
|
@@ -185,7 +185,7 @@ class ImageController extends Controller |
|
185
|
//查看文件是否存在
|
185
|
//查看文件是否存在
|
|
186
|
$imageModel = new ImageModel();
|
186
|
$imageModel = new ImageModel();
|
|
187
|
//查看图片是否已上传
|
187
|
//查看图片是否已上传
|
|
188
|
- $param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0];
|
188
|
+ $param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0,'is_ios'=>(($this->upload_location == 0) ? 1 : 0)];
|
|
189
|
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
|
189
|
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
|
|
190
|
$param['project_id'] = $this->cache['project_id'];
|
190
|
$param['project_id'] = $this->cache['project_id'];
|
|
191
|
}
|
191
|
}
|
|
@@ -268,7 +268,7 @@ class ImageController extends Controller |
|
@@ -268,7 +268,7 @@ class ImageController extends Controller |
|
268
|
$hash = hash_file('md5', $file->getPathname());
|
268
|
$hash = hash_file('md5', $file->getPathname());
|
|
269
|
$name = $file->getClientOriginalName();
|
269
|
$name = $file->getClientOriginalName();
|
|
270
|
//查看图片是否已上传
|
270
|
//查看图片是否已上传
|
|
271
|
- $param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0];
|
271
|
+ $param = ['hash'=>$hash,'refer'=>$this->param['refer'] ?? 0,'is_ios'=>(($this->upload_location == 0) ? 1 : 0)];
|
|
272
|
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
|
272
|
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
|
|
273
|
$param['project_id'] = $this->cache['project_id'];
|
273
|
$param['project_id'] = $this->cache['project_id'];
|
|
274
|
}
|
274
|
}
|