mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 23:40:38 +00:00
修复京东云上传
This commit is contained in:
parent
8bf1886902
commit
8d7f1aa1a4
@ -176,7 +176,8 @@ class Jdoss extends BaseUpload
|
||||
'Key' => $key,
|
||||
'Body' => $fileContent
|
||||
]);
|
||||
if (!isset($uploadInfo['info']['url'])) {
|
||||
$uploadInfo = $uploadInfo->toArray();
|
||||
if (isset($uploadInfo['@metadata']['statusCode']) && $uploadInfo['@metadata']['statusCode'] !== 200) {
|
||||
return $this->setError('Upload failure');
|
||||
}
|
||||
$this->fileInfo->uploadInfo = $uploadInfo;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user