zhangguidong %!s(int64=2) %!d(string=hai) anos
pai
achega
9596b4bdef
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      app/shop/controller/Goods.php

+ 4 - 1
app/shop/controller/Goods.php

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