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