sgd521 hace 2 años
padre
commit
0786d4391c
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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,