From 09e9f1a2e74cef1dbba7d9de7d4b562b37e12a53 Mon Sep 17 00:00:00 2001 From: lvxin Date: Tue, 1 Sep 2020 14:33:41 +0800 Subject: [PATCH] Duplicate array key --- application/service/GoodsService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 5c28a2d92..d19849f9c 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -876,7 +876,8 @@ class GoodsService 'is_deduction_inventory' => isset($params['is_deduction_inventory']) ? intval($params['is_deduction_inventory']) : 0, 'is_shelves' => isset($params['is_shelves']) ? intval($params['is_shelves']) : 0, 'content_web' => $content_web, - 'images' => isset($photo['data'][0]) ? $photo['data'][0] : '', + //未找到"$photo['data'][0]"合理应用场景,再者后者会覆盖,暂时注释,麻烦作者在考虑一下会不会有bug +// 'images' => isset($photo['data'][0]) ? $photo['data'][0] : '', 'photo_count' => count($photo['data']), 'is_home_recommended' => isset($params['is_home_recommended']) ? intval($params['is_home_recommended']) : 0, 'images' => $attachment['data']['images'], -- Gitee