Commit 036163ae authored by jianghaiming's avatar jianghaiming

update:set

parent dedc0172
......@@ -45,5 +45,6 @@ class GoodsException extends BaseException
31 => '当前商品锁定库存不足',
32 => '当前商品已下单数量不足',
33 => '售价不能为0',
34 => '售价不能大于5万元',
];
}
\ No newline at end of file
......@@ -179,6 +179,10 @@ class GoodsService
if ($skuData["price"] <= 0) {
throw new GoodsException(['cus' => 33]);
}
if ($skuData["price"] > 50000) {
throw new GoodsException(['cus' => 34]);
}
$checkGoodsName = self::isHaveSensitive($skuData["goods_name"], 1);
if ($checkGoodsName) {
throw new GoodsException(['cus' => 19]);
......
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