Skip to content

Commit f554cdb

Browse files
authored
Update UploadManager.php
Fixed: some disk name like "qiniu-resources" will have correct URL getter function like "getQiniuResourcesUrl"
1 parent 0840514 commit f554cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UploadManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function getStrategy()
5959
public function getUploadUrl($disk, $path)
6060
{
6161
$url = '';
62-
$methodName = 'get' . Str::camel($disk) . 'Url';
62+
$methodName = 'get' . ucfirst(Str::camel($disk)) . 'Url';
6363
if (method_exists($this->strategy, $methodName)) {
6464
$url = $this->strategy->$methodName($path);
6565
}
@@ -277,4 +277,4 @@ public function getFirstErrorMessage()
277277
}
278278
}
279279

280-
}
280+
}

0 commit comments

Comments
 (0)