Browse Source

sunguidong

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

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

@@ -192,9 +192,8 @@ class Goods extends BaseShop
 			$volume = input("volume", "");// 体积
             $imgae = explode(',',$goods_image);
             if(count($imgae)){
-                $this->error('图片上传数量上限为5张');
+                return $this->error('图片上传数量上限为5张');
             }
-            print_r(count($imgae));die;
 			$data = [
 				'goods_name' => $goods_name,
 				'goods_attr_class' => $goods_attr_class,