扫码更新
This commit is contained in:
parent
6d5046b4e8
commit
b17bf72993
@ -128,15 +128,15 @@ class ProductLibrary extends BaseController
|
|||||||
$data['stock'] = 9999999;
|
$data['stock'] = 9999999;
|
||||||
$data['create_time'] = date('Y-m-d H:i:s');
|
$data['create_time'] = date('Y-m-d H:i:s');
|
||||||
$data['images'] = '';
|
$data['images'] = '';
|
||||||
|
$arr=[];
|
||||||
if ($param['img'] != '') {
|
if ($param['img'] != '') {
|
||||||
$oss = $upload->to($dir)->stream(file_get_contents($param['img']));
|
$oss = $upload->to($dir)->stream(file_get_contents($param['img']));
|
||||||
$data['image'] = $oss->filePath;
|
$data['image'] = $oss->filePath;
|
||||||
|
$arr[]=$oss->filePath;
|
||||||
} else {
|
} else {
|
||||||
$data['image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';
|
$data['image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';
|
||||||
$data['slider_image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';
|
$data['slider_image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';
|
||||||
}
|
}
|
||||||
$arr=[];
|
|
||||||
foreach($param['imgList'] as $k=>$v){
|
foreach($param['imgList'] as $k=>$v){
|
||||||
$oss=$upload->to($dir)->stream(file_get_contents($v));
|
$oss=$upload->to($dir)->stream(file_get_contents($v));
|
||||||
$arr[] = $oss->filePath;
|
$arr[] = $oss->filePath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user