|
@@ -48,7 +48,7 @@ class GoodsService extends BaseService
|
|
|
$goods = new Goods();
|
|
|
}
|
|
|
|
|
|
- $specIdArr = Arr::get($params, "spec", []);
|
|
|
+ $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("必须要存在一个非自定义的规格");
|