ソースを参照

分类下的商品

shish 6 年 前
コミット
c102c5463a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      common/components/business.php

+ 2 - 2
common/components/business.php

@@ -40,13 +40,13 @@ class business
 		unset($info['shopImg']);
 		//没有保存图片返回空
 		if (empty($shopImg)) {
-			$info['imgList'] = [];
+			$info['imgList'] = ['normal' => '', 'middle' => ''];
 			return $info;
 		}
 		$arr = json_decode($shopImg, true);
 		//图片内容转化失败返回空
 		if (is_array($arr) == false) {
-			$info['imgList'] = [];
+			$info['imgList'] = ['normal' => '', 'middle' => ''];
 			return $info;
 		}
 		$imgList = [];