From ace0ddf87dd45c0b5848a2e345f7a7cec556f8fb Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 19 Jun 2023 16:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=84=E8=AE=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=A7=84=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/services/product/product/StoreProductReplyServices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/services/product/product/StoreProductReplyServices.php b/crmeb/app/services/product/product/StoreProductReplyServices.php index e5399edbb..5cbc1985b 100644 --- a/crmeb/app/services/product/product/StoreProductReplyServices.php +++ b/crmeb/app/services/product/product/StoreProductReplyServices.php @@ -216,7 +216,7 @@ class StoreProductReplyServices extends BaseServices [$page, $limit] = $this->getPageValue(); $list = $this->dao->replyList($id, $type, $page, $limit); foreach ($list as &$item) { - $item['suk'] = isset($item['cart_info']['productInfo']['attrInfo']) ? $item['cart_info']['productInfo']['attrInfo']['suk'] : ''; + $item['suk'] = $item['suk'] != '' ? $item['suk'] : (isset($item['cart_info']['productInfo']['attrInfo']) ? $item['cart_info']['productInfo']['attrInfo']['suk'] : ''); $item['nickname'] = anonymity($item['nickname']); $item['merchant_reply_time'] = date('Y-m-d H:i', $item['merchant_reply_time']); $item['add_time'] = time_tran($item['add_time']);