Commit aabbb224 authored by jianghaiming's avatar jianghaiming

Merge branch 'develop' of https://gitlab.yidian-inc.com/bp/goods into develop

parents ffffafcd a84b2737
...@@ -331,9 +331,11 @@ class GoodsService ...@@ -331,9 +331,11 @@ class GoodsService
throw new GoodsException(["cus" => 10]); throw new GoodsException(["cus" => 10]);
} }
$goodsSkuId = $sku["goods_sku_id"]; $goodsSkuId = $sku["goods_sku_id"];
$rejectedReason = empty($params["rejected_reason"]) ? "" : $params["rejected_reason"];
GoodsSku::save([ GoodsSku::save([
"audit_status" => $status, "audit_status" => $status,
"rejected_reason" => $params["rejected_reason"] "rejected_reason" => $rejectedReason
], ["goods_sku_id" => $sku["goods_sku_id"]]); ], ["goods_sku_id" => $sku["goods_sku_id"]]);
//todo:: info to es //todo:: info to es
...@@ -352,7 +354,7 @@ class GoodsService ...@@ -352,7 +354,7 @@ class GoodsService
"online_status" => $sku["online_status"], "online_status" => $sku["online_status"],
"before_version" => $sku["goods_version"], "before_version" => $sku["goods_version"],
"after_version" => $sku["goods_version"], "after_version" => $sku["goods_version"],
"note" => empty($params["rejected_reason"]) ? "" : $params["rejected_reason"], "note" => $rejectedReason,
]; ];
GoodsOperationRecord::insertRecord($record); GoodsOperationRecord::insertRecord($record);
} }
......
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