修复规格
This commit is contained in:
parent
6a5acd0287
commit
46c51afb2a
@ -2559,7 +2559,6 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
$attr_values = implode('-!-', $attr_values);
|
$attr_values = implode('-!-', $attr_values);
|
||||||
//更新规格属性
|
//更新规格属性
|
||||||
Db::name('store_product_attr')->where('product_id', $find['product_id'])->where('attr_name', $kk)->update(['attr_values' => $attr_values]);
|
Db::name('store_product_attr')->where('product_id', $find['product_id'])->where('attr_name', $kk)->update(['attr_values' => $attr_values]);
|
||||||
$is_update = true;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$datas = [
|
$datas = [
|
||||||
|
@ -79,6 +79,7 @@ class ImportPicJob implements JobInterface
|
|||||||
/**更新商品图片 */
|
/**更新商品图片 */
|
||||||
$image = $upload->to($dir)->stream(file_get_contents($image));
|
$image = $upload->to($dir)->stream(file_get_contents($image));
|
||||||
$update['image'] = $image->filePath;
|
$update['image'] = $image->filePath;
|
||||||
|
Db::name('store_spu')->where('product_id', $find['product_id'])->update($update);
|
||||||
foreach ($slider_image as $k => $v) {
|
foreach ($slider_image as $k => $v) {
|
||||||
$oss = $upload->to($dir)->stream(file_get_contents($v));
|
$oss = $upload->to($dir)->stream(file_get_contents($v));
|
||||||
$update['slider_image'][] = $oss->filePath;
|
$update['slider_image'][] = $oss->filePath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user