1.提交缺失的东西

This commit is contained in:
2025-05-23 17:44:14 +08:00
parent 01427a3fb3
commit 225e588ad7

View File

@ -78,11 +78,15 @@ class GoodsLists extends BaseAdminDataLists implements ListsSearchInterface
if($item['spec_type'] == 2 && $item['max_price'] !== $item['min_price']){
$item['price'] = '¥'.$item['min_price'].'~'.'¥'.$item['max_price'];
}
$item['goods_image'] = Db::name('goods_image')
$r = Db::name('goods_image')
->where(['goods_id'=>$item['id']])
->select()
->toArray();
$arr = array();
foreach($r as $key=>$value){
$arr[] = $value['url'];
}
$item['goods_image'] = $arr;
}
return $data;
}