瀏覽代碼

sunguidong

sgd521 2 年之前
父節點
當前提交
99a2242347
共有 1 個文件被更改,包括 5 次插入2 次删除
  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,