浏览代码

sunguidong

sgd521 2 年之前
父节点
当前提交
32c97ecb3c
共有 1 个文件被更改,包括 5 次插入1 次删除
  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,