Browse Source

sunguidong

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

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

@@ -352,7 +352,11 @@ class Goods extends BaseShop
 			$sku_no = input("sku_no", "");// 商品sku编码
 			$weight = input("weight", "");// 重量
 			$volume = input("volume", "");// 体积
-
+            $imgae = explode(',',$goods_image);
+            if(count($imgae)>5){
+                $res = $goods_model->count_image($imgae);
+                return $res;
+            }
 			$data = [
 				'goods_id' => $goods_id,
 				'goods_name' => $goods_name,