作者 lyh

gx

... ... @@ -455,7 +455,7 @@ if (!function_exists('getImageUrl')) {
* @method :post
* @time :2023/7/20 16:46
*/
function getImageUrl($path,$storage_type = 0,$location = 1){
function getImageUrl($path,$storage_type = 0,$location = 0){
if(is_array($path)){
$url =[];
foreach ($path as $v){
... ... @@ -476,7 +476,7 @@ if (!function_exists('getImageUrl')) {
// if($imageInfo === false){
// return '';
// }
if($location == 1){
if($location == 0){
$cos = config('filesystems.disks.cos');
$cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
$url = $cosCdn.$path;
... ... @@ -498,7 +498,7 @@ if (!function_exists('getFileUrl')) {
* @method :post
* @time :2023/7/20 16:46
*/
function getFileUrl($path,$storage_type = 0,$location = 1){
function getFileUrl($path,$storage_type = 0,$location = 0){
if(is_array($path)){
$url =[];
foreach ($path as $v){
... ... @@ -519,7 +519,7 @@ if (!function_exists('getFileUrl')) {
// if($fileInfo === false){
// return '';
// }
if($location == 1){
if($location == 0){
$cos = config('filesystems.disks.cos');
$cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
$url = $cosCdn.$path;
... ...