From 87dbf108469dca2d89e362b92115ebced0a2f60e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 1 Nov 2023 19:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/ProductLibrary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/admin/ProductLibrary.php b/app/controller/admin/ProductLibrary.php index 157be76e..caab49ef 100644 --- a/app/controller/admin/ProductLibrary.php +++ b/app/controller/admin/ProductLibrary.php @@ -141,7 +141,7 @@ class ProductLibrary extends BaseController if(!is_dir(public_path('uploads').'img/' .date('Y-m-d'))){ //需要先判断文件夹是否存 mkdir(public_path('uploads').'img/' .date('Y-m-d'),0777,true); } - $data['image']= $url_host.'/uploads/img/'.date('Y-m-d').'/'. $filename; + $data['image']='https://'.$url_host.'/uploads/img/'.date('Y-m-d').'/'. $filename; file_put_contents($destination, file_get_contents($param['img'])); }else{ $data['image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';