|
@@ -50,10 +50,6 @@ class GoodsService extends BaseService
|
|
|
}
|
|
|
|
|
|
$specIdArr = array_values(Arr::sort(Arr::get($params, "spec", [])));
|
|
|
- $notCustomSpecS = Spec::whereIn("id", $specIdArr)->where("is_custom", 0)->get();
|
|
|
- if ($notCustomSpecS->isEmpty()) {
|
|
|
- throw new ClientException("必须要存在一个非自定义的规格");
|
|
|
- }
|
|
|
|
|
|
DB::transaction(function () use ($params, $goods, $specIdArr) {
|
|
|
|