Browse Source

sunguidong

sgd521 2 years ago
parent
commit
99a2242347
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/shop/controller/Goods.php

+ 5 - 2
app/shop/controller/Goods.php

@@ -190,8 +190,11 @@ class Goods extends BaseShop
 			$sku_no = input("sku_no", "");// 商品sku编码
 			$weight = input("weight", "");// 重量
 			$volume = input("volume", "");// 体积
-            $imgae = explode(',',$goods_image);print_r(count($imgae));die;
-
+            $imgae = explode(',',$goods_image);
+            if(count($imgae)){
+                $this->error('图片上传数量上限为5张');
+            }
+            print_r(count($imgae));die;
 			$data = [
 				'goods_name' => $goods_name,
 				'goods_attr_class' => $goods_attr_class,