|
@@ -351,7 +351,9 @@ class Goods extends BaseShop
|
|
|
$sku_no = input("sku_no", "");// 商品sku编码
|
|
|
$weight = input("weight", "");// 重量
|
|
|
$volume = input("volume", "");// 体积
|
|
|
-
|
|
|
+ if(count($img)>5){
|
|
|
+ return $this->error('商品主图最多五张');
|
|
|
+ }
|
|
|
$data = [
|
|
|
'goods_id' => $goods_id,
|
|
|
'goods_name' => $goods_name,
|