Commit 8c609ae8 authored by luhongguang's avatar luhongguang

update:edit goods

parent e42bca79
......@@ -574,10 +574,12 @@ class GoodsService
if ($checkGoodsDesc) {
throw new GoodsException(['cus' => 20]);
}
if (!empty($params["introduce"])) {
$checkGoodsIntroduce = self::isHaveSensitive($params["introduce"], 3);
if ($checkGoodsIntroduce) {
throw new GoodsException(['cus' => 21]);
}
}
$checkGoodsRuleDesc = self::isHaveSensitive($params["rule_desc"], 2);
if ($checkGoodsRuleDesc) {
throw new GoodsException(['cus' => 22]);
......@@ -596,7 +598,7 @@ class GoodsService
"goods_name" => $params["goods_name"],
"desc_pic_url" => $params["desc_pic_url"],
"desc" => $params["desc"],
"introduce" => $params["introduce"],
"introduce" => empty($params["introduce"]) ? "" : $params["introduce"],
"introduce_pic_url" => $params["introduce_pic_url"],
"expiration_time" => $params["expiration_time"],
"rule_limit" => $params["rule_limit"],
......
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