Commit 9db22283 authored by luhongguang's avatar luhongguang

update:去掉商品上架状态不能修改的判断

parent c6e1698a
......@@ -556,10 +556,6 @@ class GoodsService
*/
private static function editGoodsSku($goodsSkuId, $skuData, $params = [])
{
$skuInfo = GoodsSku::getRecord(["goods_sku_id" => $goodsSkuId]);
if ($skuInfo["online_status"] == GoodsSku::ONLINE_STATUS_ONLINE) {
throw new GoodsException(['cus' => 28]);
}
if ($params["expiration_time"] < date("Y-m-d H:i:s")) {
throw new GoodsException(['cus' => 16]);
}
......
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