Commit f72036c3 authored by luhongguang's avatar luhongguang

update:生成快照

parent eac89e20
......@@ -381,6 +381,10 @@ class GoodsService
"note" => $rejectedReason,
];
GoodsOperationRecord::insertRecord($record);
//审核通过并且上架后,添加镜像
if ($status == GoodsSku::STATUS_PASS) {
self::addGoodsSnapshot($sku);
}
self::updateGoodsInfoToEs($goodsSkuId);
}
......@@ -466,6 +470,7 @@ class GoodsService
if (empty($skuInfo["setmeal"])) {
$skuInfo["setmeal"] = json_encode([]);
}
unset($skuInfo["is_import"], $skuInfo["update_time"], $skuInfo["create_time"]);
GoodsSnapshot::insertRecord($skuInfo);
}
......
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