Commit d38a65f0 authored by luhongguang's avatar luhongguang

update:增加拼单商品图片记录逻辑调整

parent 4e363b37
......@@ -1480,7 +1480,9 @@ class GoodsService
}
$ids = GoodsSkuPicRecord::select("id", ["goods_sku_id" => $goodsSkuId]);
GoodsSkuPicRecord::delete(["id" => $ids]);
if (!empty($ids)) {
GoodsSkuPicRecord::delete(["id" => $ids]);
}
$urlList = array_unique(array_merge($descPicUrl, $introducePicUrl));
$data = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment