This commit is contained in:
mkm 2023-11-04 13:51:22 +08:00
parent 04c91314ee
commit 3d461544f0
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class ProductLibrary extends BaseController
if(count($arr)>0){ if(count($arr)>0){
$data['slider_image'] =implode(',',$arr); $data['slider_image'] =implode(',',$arr);
}else{ }else{
$data['slider_image']=''; $data['slider_image']=$data['image'];
} }
$data['images'] = ''; $data['images'] = '';
$res = Db::name('product_library')->insert($data); $res = Db::name('product_library')->insert($data);

View File

@ -115,7 +115,7 @@ class CloudWarehouse extends BaseController
->withAttr('merchant',function($value,$data){ ->withAttr('merchant',function($value,$data){
return Db::name('merchant')->where('mer_id',$data['mer_id'])->field('mer_id,mer_name')->find(); return Db::name('merchant')->where('mer_id',$data['mer_id'])->field('mer_id,mer_name')->find();
}) })
->field('product_id,mer_id,store_name,bar_code,price,stock,product_type,image') // ->field('product_id,mer_id,store_name,bar_code,price,stock,product_type,image')
->select(); ->select();
return app('json')->success(['count'=>$count,'list'=>$select]); return app('json')->success(['count'=>$count,'list'=>$select]);
} }