Browse Source

sunguidong

zhangguidong 2 năm trước cách đây
mục cha
commit
f8aae7d1a5
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      app/shop/controller/Goods.php

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

@@ -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,