shish 6 лет назад
Родитель
Сommit
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 = [];