修改阿里云文件上传引擎
This commit is contained in:
parent
6ad1adaca1
commit
cfee3f3022
@ -38,16 +38,15 @@ class Aliyun extends Server
|
|||||||
$this->config['secret_key'],
|
$this->config['secret_key'],
|
||||||
$this->config['domain']
|
$this->config['domain']
|
||||||
);
|
);
|
||||||
$ossClient->uploadFile(
|
return $ossClient->uploadFile(
|
||||||
$this->config['bucket'],
|
$this->config['bucket'],
|
||||||
$this->fileName,
|
$save_dir.'/'.$this->fileName,
|
||||||
$this->getRealPath()
|
$this->getRealPath()
|
||||||
);
|
);
|
||||||
} catch (OssException $e) {
|
} catch (OssException $e) {
|
||||||
$this->error = $e->getMessage();
|
$this->error = $e->getMessage();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user