...
|
...
|
@@ -639,13 +639,13 @@ class PersonController extends RestBaseController |
|
|
$filePath = $moveUrl.DS.$url;//本地磁盘路径
|
|
|
$storage = new Storage();
|
|
|
$file = 'uploads/'.$url;
|
|
|
$storage->upload($file, $filePath, 'image');
|
|
|
// $storage->upload($file, $filePath, 'image');
|
|
|
$arr[$k]['image_url'] = $host.DS.$file;
|
|
|
$arr[$k]['file_time'] = time();
|
|
|
$sys = $this->getOperateSys();
|
|
|
if($sys == 'Linux'){
|
|
|
unlink($filePath);
|
|
|
}
|
|
|
// if($sys == 'Linux'){
|
|
|
// unlink($filePath);
|
|
|
// }
|
|
|
}else{
|
|
|
// 上传失败获取错误信息
|
|
|
$this->error($file->getError());
|
...
|
...
|
|